Restore the behavior of the 'all' status for comment queries. Props SergeyBiryukov. see #21101
git-svn-id: http://core.svn.wordpress.org/trunk@22090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b0e29340e1
commit
f1385f2979
|
@ -263,7 +263,7 @@ class WP_Comment_Query {
|
|||
$approved = "comment_approved = '0'";
|
||||
elseif ( 'approve' == $status )
|
||||
$approved = "comment_approved = '1'";
|
||||
elseif ( ! empty( $status ) )
|
||||
elseif ( ! empty( $status ) && 'all' != $status )
|
||||
$approved = $wpdb->prepare( "comment_approved = %s", $status );
|
||||
else
|
||||
$approved = "( comment_approved = '0' OR comment_approved = '1' )";
|
||||
|
|
Loading…
Reference in New Issue