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:
@@ -176,7 +176,7 @@ function edit_user( $user_id = 0 ) {
|
||||
$user_id = wp_update_user( $user );
|
||||
} else {
|
||||
$user_id = wp_insert_user( $user );
|
||||
wp_new_user_notification( $user_id );
|
||||
wp_new_user_notification( $user_id, 'both' );
|
||||
}
|
||||
return $user_id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user