WordPress.org

Make WordPress Core

Changeset 11073


Ignore:
Timestamp:
04/24/09 02:25:20 (6 years ago)
Author:
azaozz
Message:

Fix hiding of comments after approving/unapproving them

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r11035 r11073  
    263263<?php wp_nonce_field('bulk-comments'); ?> 
    264264 
    265 <?php echo "<input type='hidden' name='comment_status' value='$comment_status' />\n"; ?> 
    266265<select name="comment_type"> 
    267266    <option value="all"><?php _e('Show all comment types'); ?></option> 
  • trunk/wp-admin/includes/template.php

    r11044 r11073  
    21262126                    $actions['approve'] = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved vim-a' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>'; 
    21272127                    $actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved vim-u' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; 
    2128                     if ( $comment_status ) { // not looking at all comments 
     2128                    if ( $comment_status && 'all' != $comment_status ) { // not looking at all comments 
    21292129                        if ( 'approved' == $the_comment_status ) { 
    21302130                            $actions['unapprove'] = "<a href='$unapprove_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment&amp;new=unapproved vim-u vim-destructive' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; 
Note: See TracChangeset for help on using the changeset viewer.