From 68cad5c0706762060f7e81fac2ef8eb511ab2453 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 7 Dec 2003 09:45:57 +0000 Subject: [PATCH] Fixed bug in selection and mass moderation of comments. Made it so if comment moderation was turned of but there were still comments waited to be moderated you could moderate them. git-svn-id: http://svn.automattic.com/wordpress/trunk@579 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/wp-moderation.php | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/wp-admin/wp-moderation.php b/wp-admin/wp-moderation.php index fe019a834..9aa688cf4 100644 --- a/wp-admin/wp-moderation.php +++ b/wp-admin/wp-moderation.php @@ -47,16 +47,6 @@ case 'update': if ($user_level < 3) { die('

Your level is not high enough to moderate comments. Ask for a promotion from your blog admin. :)

'); } - - // check if comment moderation is turned on in the settings - // if not, just give a short note and stop - if ('none' == get_settings('comment_moderation')) { - echo '
-

Comment moderation has been turned off.

-
'; - require('b2footer.php'); - exit; - } $item_ignored = 0; $item_deleted = 0; @@ -105,15 +95,6 @@ default:
  • Comments Awaiting Moderation
  • -

    Comment moderation has been turned off.

    - '; - include("b2footer.php"); - exit; - } // if we come here after deleting/approving comments we give // a short overview what has been done @@ -170,9 +151,9 @@ if ($comments) {

    comment_ID."\">Edit"; echo " | comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete just this comment | "; ?>Bulk action: - - - + + +