diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php index 45fe5ecea3d8..ad0da5c8f0f0 100644 --- a/src/wp-admin/user-edit.php +++ b/src/wp-admin/user-edit.php @@ -197,704 +197,698 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; ?> - ID ) && current_user_can( 'manage_network_options' ) ) { ?> -

- - -
- -

- -

- - -

- -
- - -
- -

- -
- - -

\n

", $errors->get_error_messages() ); ?>

+ ID ) && current_user_can( 'manage_network_options' ) ) : ?> +

-
-

- -

- - - - - - - -
- -
- > - - - - -

- - -

- -

- - - - - - - - - - - - - - - + +
+ +

+ +

+ + +

+ +
- 1 && has_action( 'admin_color_scheme_picker' ) ) : ?> - - - - - 1 ?> - - - - - - + +
+ +

+ +
- - - - - - - - - - - - - - - - - -

- - - - - - - - ID ) ) : ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - $desc ) { - ?> - - - - - - - -

- - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - +
- get_all() ) === 1 ) : - ?> - - - - -get_all() ) > 1 ) : ?> - - - - -get_all() ) : ?> - - - - - + > + + + + +

+ + +

+ +

+ + + + + + + + - - - -
-

-

- - 1 ) { - ?> -

- the %2$s site in this installation that you have permissions on.', - 'Application passwords grant access to all %2$s sites in this installation that you have permissions on.', - $blogs_count - ), - admin_url( 'my-sites.php' ), - number_format_i18n( $blogs_count ) - ); - ?> -

- if ( ! wp_is_site_protected_by_basic_auth( 'front' ) ) { - ?> -
-
- - -

-
+ + + + + + + + + + 1 && has_action( 'admin_color_scheme_picker' ) ) : ?> + + + + + + + 1 ?> + + + + + + + More information' ); ?> + + + + + + + +
+ + + + + + + + + + + + locale; + + if ( 'en_US' === $user_locale ) { + $user_locale = ''; + } elseif ( '' === $user_locale || ! in_array( $user_locale, $languages, true ) ) { + $user_locale = 'site-default'; + } + + wp_dropdown_languages( + array( + 'name' => 'locale', + 'id' => 'locale', + 'selected' => $user_locale, + 'languages' => $languages, + 'show_available_translations' => false, + 'show_option_site_default' => true, + ) + ); + ?> + + + - + - -
- -
-

-
- - -
- 'application-passwords-user' ) ); - $application_passwords_list_table->prepare_items(); - $application_passwords_list_table->display(); - ?> -
- -

-

+ set the environment type accordingly to enable application passwords.' ), - __( 'https://wordpress.org/support/article/editing-wp-config-php/#wp_environment_type' ) - ); + if ( IS_PROFILE_PAGE ) { + /** + * Fires after the 'Personal Options' settings table on the 'Profile' editing screen. + * + * The action only fires if the current user is editing their own profile. + * + * @since 2.0.0 + * + * @param WP_User $profile_user The current WP_User object. + */ + do_action( 'profile_personal_options', $profile_user ); + } ?> -

- -
- - - - caps ) > count( $profile_user->roles ) - && apply_filters( 'additional_capabilities_display', true, $profile_user ) - ) : - ?> -

- - - - - - - - - - + ?> - + -
-
+ caps ) > count( $profile_user->roles ) && ( true === $display_additional_caps ) ) : ?> +

+ + + + + + + + + + + + + + + +