summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/users.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-31 09:50:02 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-31 09:50:02 +0000
commitf9d834aed9c0c6cba6faf7777e7952bf2cd8e4a5 (patch)
tree239419a4308e9639822269ff5eb935262cbd46a3 /wp-inst/wp-admin/users.php
parentad74c2c392bcdd0b8f2eee0e4d9cd0c2309617e3 (diff)
WP Core Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@261 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/users.php')
-rw-r--r--wp-inst/wp-admin/users.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/wp-inst/wp-admin/users.php b/wp-inst/wp-admin/users.php
index 452650b..62284b4 100644
--- a/wp-inst/wp-admin/users.php
+++ b/wp-inst/wp-admin/users.php
@@ -172,7 +172,7 @@ case 'adduser':
if(count($errors) == 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, 'last_name', $new_user_lastname);
update_usermeta( $user_ID, 'first_name', $new_user_firstname);
@@ -190,6 +190,9 @@ case 'adduser':
$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);
+
+ do_action('user_register', $user_id);
+
header('Location: users.php?update=add');
die();
}
@@ -292,7 +295,7 @@ default:
<tr>
<th colspan="8" align="left">
<h3><?php echo $wp_roles->role_names[$role]; ?></h3>
- </th>
+ </th></tr>
<tr>
<th><?php _e('ID') ?></th>