X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa11948979fd6a4ea5705dc613b239699a459db3..256a3b381f63716209b3527d0a14442ae570c283:/wp-admin/user-new.php diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 60d63b2f..6b18ad53 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/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() ) { @@ -189,11 +189,11 @@ 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 ) ) : ?>