mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
747bd2cf21
commit
e26363a568
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user