From a98d2a37b5f1fec70de70a5ccd26b80a8bd35b51 Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 15 Oct 2006 01:47:05 +0000 Subject: [PATCH] Bring a little love to the oft-neglected email comment approval page. git-svn-id: http://svn.automattic.com/wordpress/trunk@4398 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/comment.php | 83 ++++++++++++++++++++++++++++++-------------- 1 file changed, 56 insertions(+), 27 deletions(-) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index a8c918b77..c4e87a2ce 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -45,36 +45,65 @@ case 'mailapprovecomment': if ( !current_user_can('edit_post', $comment->comment_post_ID) ) wp_die( 'confirmdeletecomment' == $action ? __('You are not allowed to delete comments on this post.') : __('You are not allowed to edit comments on this post, so you cannot approve this comment.') ); +?> +
- echo "
\n"; - if ( 'spam' == $_GET['delete_type'] ) - echo "

" . __('Caution: You are about to mark the following comment as spam:') . "

\n"; - elseif ( 'confirmdeletecomment' == $action ) - echo "

" . __('Caution: You are about to delete the following comment:') . "

\n"; - else - echo "

" . __('Caution: You are about to approve the following comment:') . "

\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "
" . __('Author:') . "$comment->comment_author
" . __('E-mail:') . "$comment->comment_author_email
". __('URL:') . "$comment->comment_author_url
". __('Comment:') . "$comment->comment_content
\n"; - echo "

" . __('Are you sure you want to do that?') . "

\n"; +
+ +

Caution: You are about to mark the following comment as spam:'); ?>

+ +

Caution: You are about to delete the following comment:'); ?>

+ +

Caution: You are about to approve the following comment:'); ?>

+ - echo "
\n"; - wp_nonce_field($nonce_action); - echo "\n"; - if ( 'spam' == $_GET['delete_type'] ) - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo ""; - echo "  "; - echo "\n"; - echo "
\n"; - echo "
\n"; +

+
/wp-admin/comment.php' method='get'> + + + + + + +
' onclick="self.location='/wp-admin/edit-comments.php';" />' />
+ + + + + + + + + +
+ + + + + + +comment_author_email ) { ?> + + + + + +comment_author_url ) { ?> + + + + + + + + + +
comment_author; ?>
comment_author_email; ?>
comment_author_url; ?>

comment_content ); ?>
+ +
+
+