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:
rob1n 2007-05-31 03:19:38 +00:00
parent 48bfddf9fc
commit fb2f7fb6b0
1 changed files with 2 additions and 2 deletions

View File

@ -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)";