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
This commit is contained in:
Mark Jaquith 2007-09-02 05:08:48 +00:00
parent 1a98b38095
commit 71820cb422
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]);