X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/41578db67d72562346e4dbb2a14889b23d522813..985e04597a9f1ddc4a3b406d0fb33722e097ee8b:/wp-admin/user-edit.php diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 2c064bad..fb614cbd 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -39,6 +39,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.') . '

' . '

' . __('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 of All Other Sessions button. The button will only display if you are logged in to more than one device.' ) . '

' . '

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

' . '

' . __('Remember to click the Update Profile button when you are finished.') . '

'; @@ -67,7 +68,7 @@ $user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pag */ function use_ssl_preference($user) { ?> - + @@ -187,7 +188,9 @@ $profileuser = get_user_to_edit($user_id); if ( !current_user_can('edit_user', $user_id) ) wp_die(__('You do not have permission to edit this user.')); -include (ABSPATH . 'wp-admin/admin-header.php'); +$sessions = WP_Session_Tokens::get_instance( $profileuser->ID ); + +include(ABSPATH . 'wp-admin/admin-header.php'); ?> ID ) && current_user_can( 'manage_network_options' ) ) { ?> @@ -221,14 +224,14 @@ if ( ! IS_PROFILE_PAGE ) { - -
> +> @@ -242,36 +245,39 @@ if ( ! IS_PROFILE_PAGE ) { - - + + 1 && has_action('admin_color_scheme_picker') ) : ?> - + - - + - - + + - - + +
More information'); ?>
- + - + + - + - + - + - +
user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?>

@@ -344,22 +351,22 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
- + - - + - + $desc ) { ?> - - - + +
+ ID . '_new_email' ); if ( $new_email && $new_email['newemail'] != $current_user->user_email && $profileuser->ID == $current_user->ID ) : ?> @@ -412,28 +419,30 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
- + - + - + - + + +get_all() ) === 1 ) : ?> + + + + +get_all() ) > 1 ) : ?> + + + + +get_all() ) : ?> + + + + + +

-
+

-
- + +

-
- + +


-

+

  +
+

+ +

+
  +
+

+ +

+
  +

+

+ display_name ); + ?> +

+
caps ) > count( $profileuser->roles ) ) : ?>

- +