From 20e1dfcd35f21c4eb4c9df32f16aa5b9e8aad4ab Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 19 Apr 2006 07:34:29 +0000 Subject: [PATCH] Improve the comment browsing UI a bit git-svn-id: https://develop.svn.wordpress.org/trunk@3720 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-comments.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 5ead4874ef..52099508f6 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -117,9 +117,13 @@ if ('view' == $mode) {

comment_post_ID) ) { - echo " | comment_ID."\">" . __('Edit Comment') . ""; - echo " | comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), wp_specialchars( $comment->comment_author, 1 )) . "' );\">" . __('Delete Comment') . " "; - echo " | comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment-as-spam', $comment->comment_ID, '" . sprintf(__("You are about to mark as spam this comment by "%s".\\n"Cancel" to stop, "OK" to mark as spam."), wp_specialchars( $comment->comment_author, 1 )) . "' );\">" . __('Mark Comment as Spam') . " "; + echo " [ " . __('Edit') . ''; + echo ' | comment_author, 1)) . "' );\">" . __('Delete') . ' '; + if ( ('none' != $comment_status) && ( current_user_can('moderate_comments') ) ) { + echo ' | ' . __('Unapprove') . ' '; + echo ' | ' . __('Approve') . ' '; + } + echo " | comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment-as-spam', $comment->comment_ID, '" . sprintf(__("You are about to mark as spam this comment by "%s".\\n"Cancel" to stop, "OK" to mark as spam."), wp_specialchars( $comment->comment_author, 1 )) . "' );\">" . __('Mark Comment as Spam') . " ]"; } // end if any comments to show // Get post title $post = get_post($comment->comment_post_ID); @@ -127,12 +131,12 @@ if ('view' == $mode) { $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title; if ( 'page' == $post->post_type ) { if ( current_user_can('edit_page', $comment->comment_post_ID) ) ?> - | + [ comment_post_ID) ) ?> - | + [ - |

+ | ]