mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Move most instances of new WP_User to get_userdata(). see #21120.
git-svn-id: https://develop.svn.wordpress.org/trunk@21413 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1198,7 +1198,7 @@ if ( !function_exists('wp_new_user_notification') ) :
|
||||
* @param string $plaintext_pass Optional. The user's plaintext password
|
||||
*/
|
||||
function wp_new_user_notification($user_id, $plaintext_pass = '') {
|
||||
$user = new WP_User($user_id);
|
||||
$user = get_userdata( $user_id );
|
||||
|
||||
$user_login = stripslashes($user->user_login);
|
||||
$user_email = stripslashes($user->user_email);
|
||||
|
||||
Reference in New Issue
Block a user