Correct variable name in clean_object_term_cache(). props arnee. fixes #4888

git-svn-id: http://svn.automattic.com/wordpress/trunk@6007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-09-02 05:08:48 +00:00
parent 747bd2cf21
commit e26363a568
1 changed files with 3 additions and 3 deletions

View File

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