Users: Use clean_user_cache() in wp_insert_user(), wp_update_user(), wp_set_password(), add_user_to_blog().

Props spacedmonkey.
Fixes #47021.

git-svn-id: https://develop.svn.wordpress.org/trunk@45715 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-08-01 17:48:31 +00:00
parent f912470ac3
commit 750a5c4749
3 changed files with 8 additions and 6 deletions

View File

@@ -2506,7 +2506,7 @@ if ( ! function_exists( 'wp_set_password' ) ) :
array( 'ID' => $user_id )
);
wp_cache_delete( $user_id, 'users' );
clean_user_cache( $user_id );
}
endif;