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
This commit is contained in:
ryan 2008-04-17 22:33:35 +00:00
parent f42f78b3b1
commit 019e456c4c
1 changed files with 1 additions and 1 deletions

View File

@ -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);