Fix some typos in query.php. Props schulte. fixes #4373
git-svn-id: http://svn.automattic.com/wordpress/trunk@5609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
48bfddf9fc
commit
fb2f7fb6b0
|
@ -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