From e1f98333f63b25a6f32600aa78b7b4e9f8c404b4 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 24 Oct 2007 17:07:04 +0000 Subject: [PATCH] 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 --- wp-includes/taxonomy.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 9c558b395a..0e7a360456 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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); }