Fix SQL error when excluding empty cat. fixes #3598
git-svn-id: http://svn.automattic.com/wordpress/trunk@4754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
614fecf492
commit
a78920e6b9
|
@ -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