mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
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
This commit is contained in:
parent
e3645bc203
commit
68cad5c070
@ -47,16 +47,6 @@ case 'update':
|
||||
if ($user_level < 3) {
|
||||
die('<p>Your level is not high enough to moderate comments. Ask for a promotion from your <a href="mailto:$admin_email">blog admin</a>. :)</p>');
|
||||
}
|
||||
|
||||
// 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 '<div class="wrap">
|
||||
<p>Comment moderation has been turned off.</p>
|
||||
</div>';
|
||||
require('b2footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
$item_ignored = 0;
|
||||
$item_deleted = 0;
|
||||
@ -105,15 +95,6 @@ default:
|
||||
<li class="last"><a href="wp-moderation.php" class="current">Comments Awaiting Moderation</a></li>
|
||||
</ul>
|
||||
<?php
|
||||
// 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 '<div class="wrap">
|
||||
<p>Comment moderation has been turned off.</p>
|
||||
</div>';
|
||||
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) {
|
||||
<p><?php
|
||||
echo "<a href=\"wp-post.php?action=editcomment&comment=".$comment->comment_ID."\">Edit</a>";
|
||||
echo " | <a href=\"wp-post.php?action=deletecomment&p=".$comment->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</a> | "; ?>Bulk action:
|
||||
<label><input type="radio" name="comment[$comment->comment_ID]" value="approve" /> Approve</label>
|
||||
<label><input type="radio" name="comment[$comment->comment_ID]" value="delete" /> Delete</label>
|
||||
<label><input type="radio" name="comment[$comment->comment_ID]" value="later" checked="checked" /> Do nothing</label>
|
||||
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-approve" value="approve" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-approve">Approve</label>
|
||||
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-delete" value="delete" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-delete">Delete</label>
|
||||
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-nothing" value="later" checked="checked" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-nothing">Do nothing</label>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user