Password nag should be a global user option. Fixes #12926
git-svn-id: https://develop.svn.wordpress.org/trunk@14060 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
240551a9fa
commit
af68a811dc
@ -67,7 +67,7 @@ function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated
|
|||||||
$user_password = wp_generate_password();
|
$user_password = wp_generate_password();
|
||||||
$message = __('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.');
|
$message = __('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.');
|
||||||
$user_id = wp_create_user($user_name, $user_password, $user_email);
|
$user_id = wp_create_user($user_name, $user_password, $user_email);
|
||||||
update_user_option($user_id, 'default_password_nag', true);
|
update_user_option($user_id, 'default_password_nag', true, true);
|
||||||
$email_password = true;
|
$email_password = true;
|
||||||
} else if ( !$user_id ) {
|
} else if ( !$user_id ) {
|
||||||
// Password has been provided
|
// Password has been provided
|
||||||
|
Loading…
Reference in New Issue
Block a user