From 00d08351518ab80184175e46a8fd91ebee0f50cc Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 18 Nov 2010 05:38:53 +0000 Subject: [PATCH] Revert extra stuff from [16455]. git-svn-id: http://svn.automattic.com/wordpress/trunk@16456 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/user-new.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) 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 - +