diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 5b80c8ff6..1e3705955 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -215,25 +215,29 @@ if ( is_multisite() ) { if ( $do_both ) echo '

' . __('Add Existing User') . '

'; if ( !is_super_admin() ) { - _e( 'Enter the email address of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ); + _e( 'Enter the email address of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ); $label = __('E-mail'); } else { - _e( 'Enter the email address or username of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ); + _e( 'Enter the email address or username of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ); $label = __('E-mail or Username'); } ?> -
> +> - + @@ -251,25 +255,21 @@ if ( is_multisite() ) { if ( current_user_can( 'create_users') ) { if ( $do_both ) - echo '

' . __( 'Create New User' ) . '

'; + echo '

' . __('Create New User') . '

'; ?>

-> +> 'login', 'first_name' => 'firstname', 'last_name' => 'lastname', - 'email' => 'email', 'url' => 'uri', 'role' => 'role', 'send_password' => 'send_password', 'noconfirmation' => 'ignore_pass' ) as $post_field => $var ) { +foreach ( array('user_login' => 'login', 'first_name' => 'firstname', 'last_name' => 'lastname', + 'email' => 'email', 'url' => 'uri', 'role' => 'role') as $post_field => $var ) { $var = "new_user_$var"; - if( isset( $_POST['createuser'] ) ) { - if ( ! isset($$var) ) - $$var = isset( $_POST[$post_field] ) ? stripslashes( $_POST[$post_field] ) : ''; - } else { - $$var = false; - } + if ( ! isset($$var) ) + $$var = isset($_POST[$post_field]) ? stripslashes($_POST[$post_field]) : ''; } - +$new_user_send_password = !$_POST || isset($_POST['send_password']); ?>
@@ -306,7 +306,7 @@ foreach ( array( 'user_login' => 'login', 'first_name' => 'firstname', 'last_nam - + @@ -324,7 +324,7 @@ foreach ( array( 'user_login' => 'login', 'first_name' => 'firstname', 'last_nam - +