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. Built from https://develop.svn.wordpress.org/trunk@33620 git-svn-id: http://core.svn.wordpress.org/trunk@33587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -51,7 +51,7 @@ if ( isset($_REQUEST['action']) && 'add-user' == $_REQUEST['action'] ) {
|
||||
if ( ! $user_id ) {
|
||||
$add_user_errors = new WP_Error( 'add_user_fail', __( 'Cannot add user.' ) );
|
||||
} else {
|
||||
wp_new_user_notification( $user_id, $password );
|
||||
wp_new_user_notification( $user_id, 'both' );
|
||||
wp_redirect( add_query_arg( array('update' => 'added'), 'user-new.php' ) );
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user