mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Set up the password nag for newly registered users. Fixes #12143
git-svn-id: https://develop.svn.wordpress.org/trunk@13490 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -312,6 +312,8 @@ function register_new_user($user_login, $user_email) {
|
||||
return $errors;
|
||||
}
|
||||
|
||||
update_user_option($user_id, 'default_password_nag', true, true); //Set up the Password change nag.
|
||||
|
||||
wp_new_user_notification($user_id, $user_pass);
|
||||
|
||||
return $user_id;
|
||||
|
||||
Reference in New Issue
Block a user