clean_user_cache() instead of direct cache delete.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8420f41a24
commit
4939a7610a
|
@ -189,7 +189,7 @@ function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '', $d
|
||||||
wp_cache_delete($object_id, $meta_type . '_meta');
|
wp_cache_delete($object_id, $meta_type . '_meta');
|
||||||
// users cache stores usermeta that must be cleared.
|
// users cache stores usermeta that must be cleared.
|
||||||
if ( 'user' == $meta_type )
|
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 );
|
do_action( "deleted_{$meta_type}_meta", $meta_ids, $object_id, $meta_key, $meta_value );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue