X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa11948979fd6a4ea5705dc613b239699a459db3..245e789b234afa4525862e7a6e5e3c2e7a52ef20:/wp-admin/user-new.php diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 60d63b2f..b5c9c0bc 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -85,7 +85,7 @@ You\'ve been invited to join \'%1$s\' at Please click the following link to confirm the invite: %4$s' ); - wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), get_option( 'blogname' ) ), sprintf( $message, get_option( 'blogname' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ), home_url( "/newbloguser/$newuser_key/" ) ) ); + wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), sprintf( $message, get_option( 'blogname' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ), home_url( "/newbloguser/$newuser_key/" ) ) ); $redirect = add_query_arg( array('update' => 'add'), 'user-new.php' ); } } @@ -117,11 +117,11 @@ Please click the following link to confirm the invite: $add_user_errors = $user_details[ 'errors' ]; } else { /** - * Filter the user_login, aka the username, before it is added to the site. + * Filter the user_login, also known as the username, before it is added to the site. * - * @since 3.0.0 + * @since 2.0.3 * - * @param string $_REQUEST['user_login'] The sanitized username. + * @param string $user_login The sanitized username. */ $new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) ); if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { @@ -182,18 +182,18 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . '

' . __('Documentation on Adding New Users') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Support Forums') . '

' ); wp_enqueue_script('wp-ajax-response'); wp_enqueue_script('user-profile'); /** - * Allows you to enable user auto-complete for non-super admins in multisite. + * Filter whether to enable user auto-complete for non-super admins in Multisite. * * @since 3.4.0 * - * @param bool True or false, based on if you enable auto-complete for non-super admins. Default is false. + * @param bool $enable Whether to enable auto-complete for non-super admins. Default false. */ if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_network( 'users' ) && ( is_super_admin() || apply_filters( 'autocomplete_users_for_site_admins', false ) ) @@ -233,7 +233,6 @@ if ( isset($_GET['update']) ) { } ?>
-

-
> +> @@ -320,7 +319,7 @@ if ( is_multisite() ) { * * @since 3.7.0 * - * @param string A contextual string specifying which type of new user form the hook follows. + * @param string $type A contextual string specifying which type of new user form the hook follows. */ do_action( 'user_new_form', 'add-existing-user' ); ?> @@ -334,10 +333,8 @@ if ( current_user_can( 'create_users') ) { echo '

' . __( 'Add New User' ) . '

'; ?>

- -> + +> 'login', 'first_name' => 'firstname', 'last_nam * * @since 1.5.1 * - * @param bool True or false, based on if you want to show the password fields. Default is true. + * @param bool $show Whether to show the password fields. Default true. */ if ( apply_filters( 'show_password_fields', true ) ) : ?> @@ -398,12 +395,12 @@ if ( apply_filters( 'show_password_fields', true ) ) : ?>
-

+

- +