diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-24 16:16:44 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-24 16:16:44 +0000 |
| commit | 600b71019494e1c29898a620e58c0d2602f37b74 (patch) | |
| tree | 21181d77ad4ebbcd42cd883e509c08a568d29514 /wp-admin/moderation.php | |
| parent | 7935d0bd9ef23d32ae29a95bd6c3ea0b6eab2973 (diff) | |
WP Merge to 4524
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@810 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/moderation.php')
| -rw-r--r-- | wp-admin/moderation.php | 36 |
1 files changed, 18 insertions, 18 deletions
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) . " <br/>\n"; } } - if ($spam) { - if ('1' == $spam) { + if ($spam) { + if ('1' == $spam) { echo __("1 comment marked as spam") . " <br/>\n"; - } else { - echo sprintf(__("%s comments marked as spam"), $spam) . " <br/>\n"; - } - } + } else { + echo sprintf(__("%s comments marked as spam"), $spam) . " <br/>\n"; + } + } if ($ignored) { if ('1' == $ignored) { echo __("1 comment unchanged") . " <br/>\n"; @@ -151,13 +151,13 @@ $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title; </li> <?php - } + } ?> - </ol> + </ol> <div id="ajax-response"></div> - <p class="submit"><input type="submit" name="submit" value="<?php _e('Bulk Moderate Comments »') ?>" /></p> +<p class="submit"><input type="submit" name="submit" value="<?php _e('Bulk Moderate Comments »') ?>" /></p> <script type="text/javascript"> // <