Passwords: Restore second parameter for wp_new_user_notification().

After [33023] users would always be notified, this restores previous behavior.

Props markjaquith, ocean90.
Fixes #33358.



git-svn-id: https://develop.svn.wordpress.org/trunk@33620 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland
2015-08-17 14:24:43 +00:00
parent 9c70cea98f
commit e7a203cdf2
6 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -2619,7 +2619,7 @@ function register_new_user( $user_login, $user_email ) {
update_user_option( $user_id, 'default_password_nag', true, true ); //Set up the Password change nag.
wp_new_user_notification( $user_id );
wp_new_user_notification( $user_id, 'both' );
return $user_id;
}