mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Comment query fix from MtDewVirus. fixes #6805 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d95ea6777b
commit
779ff029f6
@ -573,7 +573,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);
|
||||
|
Loading…
Reference in New Issue
Block a user