Fix reveresed logic. see #6805
git-svn-id: http://svn.automattic.com/wordpress/trunk@7787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5ea7b64496
commit
4a31dc117f
|
@ -583,7 +583,7 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num ) {
|
||||||
elseif ( 'spam' == $status )
|
elseif ( 'spam' == $status )
|
||||||
$approved = "comment_approved = 'spam'";
|
$approved = "comment_approved = 'spam'";
|
||||||
else
|
else
|
||||||
$approved = "( comment_approved != '0' OR comment_approved = '1' )";
|
$approved = "( comment_approved = '0' OR comment_approved = '1' )";
|
||||||
|
|
||||||
if ( $s ) {
|
if ( $s ) {
|
||||||
$s = $wpdb->escape($s);
|
$s = $wpdb->escape($s);
|
||||||
|
|
Loading…
Reference in New Issue