diff --git a/wp-admin/network.php b/wp-admin/network.php index 0655b3d6c..2468f7d91 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -25,7 +25,7 @@ if ( is_multisite() ) { } if ( ! defined( 'MULTISITE' ) ) wp_die( __( 'The Network creation panel is not for WordPress MU networks.' ) ); -} +} // We need to create references to ms global tables to enable Network. foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) @@ -312,7 +312,10 @@ function network_step2( $errors = false ) { echo '
' . $errors->get_error_message() . '
'; if ( $_POST ) { - $subdomain_install = allow_subdomain_install() ? ( allow_subdirectory_install() ? ! empty( $_POST['subdomain_install'] ) : true ) : false; + if ( allow_subdomain_install() ) + $subdomain_install = allow_subdirectory_install() ? ! empty( $_POST['subdomain_install'] ) : true; + else + $subdomain_install = false; } else { if ( is_multisite() ) { $subdomain_install = is_subdomain_install(); diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 1e3705955..5b80c8ff6 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -215,29 +215,25 @@ 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'); } ?> -
> +> - + @@ -255,21 +251,25 @@ 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') as $post_field => $var ) { +foreach ( array( 'user_login' => 'login', 'first_name' => 'firstname', 'last_name' => 'lastname', + 'email' => 'email', 'url' => 'uri', 'role' => 'role', 'send_password' => 'send_password', 'noconfirmation' => 'ignore_pass' ) as $post_field => $var ) { $var = "new_user_$var"; - if ( ! isset($$var) ) - $$var = isset($_POST[$post_field]) ? stripslashes($_POST[$post_field]) : ''; + if( isset( $_POST['createuser'] ) ) { + if ( ! isset($$var) ) + $$var = isset( $_POST[$post_field] ) ? stripslashes( $_POST[$post_field] ) : ''; + } else { + $$var = false; + } } -$new_user_send_password = !$_POST || isset($_POST['send_password']); + ?>
@@ -306,7 +306,7 @@ $new_user_send_password = !$_POST || isset($_POST['send_password']); - + @@ -324,7 +324,7 @@ $new_user_send_password = !$_POST || isset($_POST['send_password']); - +