Fixes #1567 for 1.6

git-svn-id: http://svn.automattic.com/wordpress/trunk@2829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-30 23:21:25 +00:00
parent ab39a0e1ac
commit e4224f411b
1 changed files with 4 additions and 1 deletions

View File

@ -148,7 +148,7 @@ case 'adduser':
if(count($errors) == 0) { if(count($errors) == 0) {
$user_ID = create_user( $new_user_login, $new_pass1, $new_user_email, 0 ); $user_ID = create_user( $new_user_login, $new_pass1, $new_user_email, 0 );
update_usermeta( $user_ID, 'first_name', $new_user_firstname); update_usermeta( $user_ID, 'first_name', $new_user_firstname);
update_usermeta( $user_ID, 'last_name', $new_user_lastname); update_usermeta( $user_ID, 'last_name', $new_user_lastname);
update_usermeta( $user_ID, 'first_name', $new_user_firstname); update_usermeta( $user_ID, 'first_name', $new_user_firstname);
@ -166,6 +166,9 @@ case 'adduser':
$message .= sprintf(__('E-mail: %s'), $new_user_email) . "\r\n"; $message .= sprintf(__('E-mail: %s'), $new_user_email) . "\r\n";
@wp_mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message); @wp_mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message);
do_action('user_register', $user_id);
header('Location: users.php?update=add'); header('Location: users.php?update=add');
die(); die();
} }