Make WordPress Core

Ticket #21101: 21101.2.diff

File 21101.2.diff, 565 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-includes/comment.php

     
    266266                        $approved = "comment_approved = '0'";
    267267                elseif ( 'approve' == $status )
    268268                        $approved = "comment_approved = '1'";
    269                 elseif ( ! empty( $status ) )
     269                elseif ( ! empty( $status ) && 'all' != $status )
    270270                        $approved = $wpdb->prepare( "comment_approved = %s", $status );
    271271                else
    272272                        $approved = "( comment_approved = '0' OR comment_approved = '1' )";