From 71820cb42226a942dce92ae44ae419fb13771bbe Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sun, 2 Sep 2007 05:08:48 +0000 Subject: [PATCH] Correct variable name in clean_object_term_cache(). props arnee. fixes #4888 git-svn-id: https://develop.svn.wordpress.org/trunk@6007 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 69228581a1..1f6da5b703 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -967,12 +967,12 @@ function wp_update_term_count( $terms, $taxonomy ) { function clean_object_term_cache($object_ids, $object_type) { global $object_term_cache, $blog_id; - if ( !is_array($ids) ) - $ids = array($ids); + if ( !is_array($object_ids) ) + $object_ids = array($object_ids); $taxonomies = get_object_taxonomies($object_type); - foreach ( $ids as $id ) { + foreach ( $object_ids as $id ) { foreach ( $taxonomies as $taxonomy ) { if ( isset($object_term_cache[$blog_id][$id][$taxonomy]) ) unset($object_term_cache[$blog_id][$id][$taxonomy]);