From 779ff029f6a4c56e81affa8410041725d0aa2ab7 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 22 Apr 2008 20:51:35 +0000 Subject: [PATCH] Comment query fix from MtDewVirus. fixes #6805 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@7766 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index e58e585da..5a7ec974e 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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);