From 85078df8c7e5ad2b6faaadc148070af687d7e3c1 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 24 Oct 2007 17:07:04 +0000 Subject: [PATCH] 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 --- 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 9c558b395..0e7a36045 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); }