clean_user_cache() instead of direct cache delete.

git-svn-id: https://develop.svn.wordpress.org/trunk@14305 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-04-29 18:32:01 +00:00
parent 12fc1ca1b7
commit 93e92e9b32
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '', $d
wp_cache_delete($object_id, $meta_type . '_meta');
// users cache stores usermeta that must be cleared.
if ( 'user' == $meta_type )
wp_cache_delete($object_id, 'users');
clean_user_cache($object_id);
do_action( "deleted_{$meta_type}_meta", $meta_ids, $object_id, $meta_key, $meta_value );