mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 09:03:09 +01:00
Checking for 0 and 1 instead of != spam is faster.
git-svn-id: https://develop.svn.wordpress.org/trunk@7732 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cf3bbc413a
commit
726f7f5e56
@ -596,7 +596,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 != 'spam'";
|
$approved = "comment_approved = '0' OR comment_approved = '1'";
|
||||||
|
|
||||||
if ( $s ) {
|
if ( $s ) {
|
||||||
$s = $wpdb->escape($s);
|
$s = $wpdb->escape($s);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user