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:
parent
12fc1ca1b7
commit
93e92e9b32
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue