From 600b71019494e1c29898a620e58c0d2602f37b74 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 24 Nov 2006 16:16:44 +0000 Subject: WP Merge to 4524 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@810 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/moderation.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'wp-admin/moderation.php') diff --git a/wp-admin/moderation.php b/wp-admin/moderation.php index b9e3f06..e9fc505 100644 --- a/wp-admin/moderation.php +++ b/wp-admin/moderation.php @@ -2,7 +2,7 @@ require_once('admin.php'); $title = __('Moderate comments'); -$parent_file = 'edit.php'; +$parent_file = 'edit-comments.php'; wp_enqueue_script( 'admin-comments' ); wp_reset_vars(array('action', 'item_ignored', 'item_deleted', 'item_approved', 'item_spam', 'feelinglucky')); @@ -31,7 +31,7 @@ case 'update': foreach($comment as $key => $value) { if ($feelinglucky && 'later' == $value) $value = 'delete'; - switch($value) { + switch($value) { case 'later': // do nothing with that comment // wp_set_comment_status($key, "hold"); @@ -41,10 +41,10 @@ case 'update': wp_set_comment_status($key, 'delete'); ++$item_deleted; break; - case 'spam': - wp_set_comment_status($key, 'spam'); - ++$item_spam; - break; + case 'spam': + wp_set_comment_status($key, 'spam'); + ++$item_spam; + break; case 'approve': wp_set_comment_status($key, 'approve'); if ( get_option('comments_notify') == true ) { @@ -52,7 +52,7 @@ case 'update': } ++$item_approved; break; - } + } } $file = basename(__FILE__); @@ -85,13 +85,13 @@ if ( isset($_GET['deleted']) || isset($_GET['approved']) || isset($_GET['ignored echo sprintf(__("%s comments deleted"), $deleted) . "
\n"; } } - if ($spam) { - if ('1' == $spam) { + if ($spam) { + if ('1' == $spam) { echo __("1 comment marked as spam") . "
\n"; - } else { - echo sprintf(__("%s comments marked as spam"), $spam) . "
\n"; - } - } + } else { + echo sprintf(__("%s comments marked as spam"), $spam) . "
\n"; + } + } if ($ignored) { if ('1' == $ignored) { echo __("1 comment unchanged") . "
\n"; @@ -151,13 +151,13 @@ $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title; - +
-

+