Fix some typos in query.php. Props schulte. fixes #4373
git-svn-id: https://develop.svn.wordpress.org/trunk@5609 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d5e0bed711
commit
f0cd9cb22a
|
@ -855,7 +855,7 @@ class WP_Query {
|
|||
$in_cats = array_merge($in_cats, get_term_children($cat, 'category'));
|
||||
} else {
|
||||
$out_cats[] = $cat;
|
||||
$out_cats = arry_merge($out_cats, get_term_children($cat, 'category'));
|
||||
$out_cats = array_merge($out_cats, get_term_children($cat, 'category'));
|
||||
}
|
||||
}
|
||||
if ( ! empty($in_cats) ) {
|
||||
|
@ -864,7 +864,7 @@ class WP_Query {
|
|||
}
|
||||
|
||||
if ( !empty($out_cats) ) {
|
||||
$ids = get_objects_in_terms($out_cats, 'category');
|
||||
$ids = get_objects_in_term($out_cats, 'category');
|
||||
if ( is_array($ids) && count($ids > 0) ) {
|
||||
$out_posts = "'" . implode("', '", $ids) . "'";
|
||||
$exclude_cats = " AND $wpdb->posts.ID NOT IN ($out_posts)";
|
||||
|
|
Loading…
Reference in New Issue