X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/b22765f41bf0b2021b9beb9120ee0ac91fa89292..e3ff8f35458a959c1879c0a4976701ed8dcfe651:/wp-admin/user-edit.php diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index aa6ed7f5..2222ae26 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -38,6 +38,7 @@ else $profile_help = '

' . __('Your profile contains information about you (your “account”) as well as some personal options related to using WordPress.') . '

' . '

' . __('You can change your password, turn on keyboard shortcuts, change the color scheme of your WordPress administration screens, and turn off the WYSIWYG (Visual) editor, among other things. You can hide the Toolbar (formerly called the Admin Bar) from the front end of your site, however it cannot be disabled on the admin screens.') . '

' . + '

' . __( 'You can select the language you wish to use while using the WordPress administration screen without affecting the language site visitors see.' ) . '

' . '

' . __('Your username cannot be changed, but you can use other fields to enter your real name or a nickname, and change which name to display on your posts.') . '

' . '

' . __( 'You can log out of other devices, such as your phone or a public computer, by clicking the Log Out Everywhere Else button.' ) . '

' . '

' . __('Required fields are indicated; the rest are optional. Profile information will only be displayed if your theme is set up to do so.') . '

' . @@ -51,8 +52,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

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

' . - '

' . __('Documentation on User Profiles') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on User Profiles') . '

' . + '

' . __('Support Forums') . '

' ); $wp_http_referer = remove_query_arg( array( 'update', 'delete_count', 'user_id' ), $wp_http_referer ); @@ -269,6 +270,40 @@ if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?> + + + + + + + + + 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 + ) ); + ?> + + + +

@@ -503,16 +540,16 @@ if ( $show_password_fields = apply_filters( 'show_password_fields', true, $profi - +
- - @@ -542,7 +579,7 @@ if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?> -
+

@@ -552,7 +589,7 @@ if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?> -
+

@@ -562,7 +599,7 @@ if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?> -

+