From fb2f7fb6b0c1424be7c4de52c8cd46103d3ebba4 Mon Sep 17 00:00:00 2001 From: rob1n Date: Thu, 31 May 2007 03:19:38 +0000 Subject: [PATCH] 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 --- wp-includes/query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 903b52838e..2b6e44645d 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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)";