Update clean_object_term_cache() to clear for each taxonomy
git-svn-id: http://svn.automattic.com/wordpress/trunk@6288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1920dc0390
commit
85078df8c7
|
@ -1363,7 +1363,8 @@ function clean_object_term_cache($object_ids, $object_type) {
|
||||||
$object_ids = array($object_ids);
|
$object_ids = array($object_ids);
|
||||||
|
|
||||||
foreach ( $object_ids as $id )
|
foreach ( $object_ids as $id )
|
||||||
wp_cache_delete($id, 'object_terms');
|
foreach ( get_object_taxonomies($object_type) as $taxonomy )
|
||||||
|
wp_cache_delete($id, "{$taxonomy}_relationships");
|
||||||
|
|
||||||
do_action('clean_object_term_cache', $object_ids, $object_type);
|
do_action('clean_object_term_cache', $object_ids, $object_type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue