Add option to send password to users created from admin. Props Denis-de-Bernardy. fixes #9669

git-svn-id: https://develop.svn.wordpress.org/trunk@11319 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-05-13 22:35:17 +00:00
parent fc80cdec6b
commit d93e16b6cb
2 changed files with 7 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ function edit_user( $user_id = 0 ) {
$user_id = wp_update_user( get_object_vars( $user ));
} else {
$user_id = wp_insert_user( get_object_vars( $user ));
wp_new_user_notification( $user_id );
wp_new_user_notification( $user_id, isset($_POST['send_password']) ? $pass1 : '' );
}
return $user_id;
}
@@ -830,4 +830,4 @@ function default_password_nag() {
echo '</p></div>';
}
?>
?>