Fix SQL error when excluding empty cat. fixes #3598
git-svn-id: https://develop.svn.wordpress.org/trunk@4754 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
22f99849eb
commit
fb8bd1dbec
@ -804,6 +804,8 @@ class WP_Query {
|
||||
}
|
||||
if ( strlen($out_posts) > 0 )
|
||||
$out_cats = " AND ID NOT IN ($out_posts)";
|
||||
else
|
||||
$out_cats = '';
|
||||
}
|
||||
$whichcat = $in_cats . $out_cats;
|
||||
$groupby = "{$wpdb->posts}.ID";
|
||||
|
Loading…
Reference in New Issue
Block a user