From 019e456c4c4558f6ebc233f6b239a057651c7c1e Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 17 Apr 2008 22:33:35 +0000 Subject: [PATCH] Checking for 0 and 1 instead of != spam is faster. git-svn-id: http://svn.automattic.com/wordpress/trunk@7732 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 01c3a28820..48ef7e6997 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -596,7 +596,7 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num ) { elseif ( 'spam' == $status ) $approved = "comment_approved = 'spam'"; else - $approved = "comment_approved != 'spam'"; + $approved = "comment_approved = '0' OR comment_approved = '1'"; if ( $s ) { $s = $wpdb->escape($s);