Fix reveresed logic. see #6805

git-svn-id: https://develop.svn.wordpress.org/trunk@7787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-23 01:25:01 +00:00
parent 41ab0e3935
commit d1f030f31a

View File

@ -583,7 +583,7 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num ) {
elseif ( 'spam' == $status )
$approved = "comment_approved = 'spam'";
else
$approved = "( comment_approved != '0' OR comment_approved = '1' )";
$approved = "( comment_approved = '0' OR comment_approved = '1' )";
if ( $s ) {
$s = $wpdb->escape($s);