WordPress.org

Make WordPress Core

Changeset 579


Ignore:
Timestamp:
12/07/2003 09:45:57 AM (18 years ago)
Author:
saxmatt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/wp-moderation.php

    r560 r579  
    4848        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>');
    4949    }
    50    
    51     // check if comment moderation is turned on in the settings
    52     // if not, just give a short note and stop
    53     if ('none' == get_settings('comment_moderation')) {
    54         echo '<div class="wrap">
    55         <p>Comment moderation has been turned off.</p>
    56         </div>';
    57         require('b2footer.php');
    58         exit;
    59     }   
    6050
    6151    $item_ignored = 0;
     
    10696</ul>
    10797<?php
    108     // check if comment moderation is turned on in the settings
    109     // if not, just give a short note and stop
    110     if ('none' == get_settings('comment_moderation')) {
    111         echo '<div class="wrap">
    112         <p>Comment moderation has been turned off.</p>
    113         </div>';
    114         include("b2footer.php");
    115         exit;
    116     }   
    11798
    11899    // if we come here after deleting/approving comments we give
     
    171152echo "<a href=\"wp-post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">Edit</a>";
    172153                echo " | <a href=\"wp-post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;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:
    173     <label><input type="radio" name="comment[$comment->comment_ID]" value="approve" /> Approve</label>
    174     <label><input type="radio" name="comment[$comment->comment_ID]" value="delete" /> Delete</label>
    175     <label><input type="radio" name="comment[$comment->comment_ID]" value="later" checked="checked" /> Do nothing</label>
     154    <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>
     155    <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>
     156    <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>
    176157
    177158    </li>
Note: See TracChangeset for help on using the changeset viewer.