mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Update clean_object_term_cache() to clear for each taxonomy
git-svn-id: https://develop.svn.wordpress.org/trunk@6288 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e14f9e0d4d
commit
e1f98333f6
@ -1363,7 +1363,8 @@ function clean_object_term_cache($object_ids, $object_type) {
|
||||
$object_ids = array($object_ids);
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user