Users: Display the name of user being edited on Edit User screen.
Props seanchayes. Fixes #28182. Built from https://develop.svn.wordpress.org/trunk@39907 git-svn-id: http://core.svn.wordpress.org/trunk@39844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
649d554294
commit
9ba7ab1cfc
|
@ -25,7 +25,13 @@ elseif ( ! get_userdata( $user_id ) )
|
||||||
|
|
||||||
wp_enqueue_script('user-profile');
|
wp_enqueue_script('user-profile');
|
||||||
|
|
||||||
$title = IS_PROFILE_PAGE ? __('Profile') : __('Edit User');
|
if ( IS_PROFILE_PAGE ) {
|
||||||
|
$title = __( 'Profile' );
|
||||||
|
} else {
|
||||||
|
/* translators: %s: user's display name */
|
||||||
|
$title = __( 'Edit User %s' );
|
||||||
|
}
|
||||||
|
|
||||||
if ( current_user_can('edit_users') && !IS_PROFILE_PAGE )
|
if ( current_user_can('edit_users') && !IS_PROFILE_PAGE )
|
||||||
$submenu_file = 'users.php';
|
$submenu_file = 'users.php';
|
||||||
else
|
else
|
||||||
|
@ -166,6 +172,7 @@ $profileuser = get_user_to_edit($user_id);
|
||||||
if ( !current_user_can('edit_user', $user_id) )
|
if ( !current_user_can('edit_user', $user_id) )
|
||||||
wp_die(__('Sorry, you are not allowed to edit this user.'));
|
wp_die(__('Sorry, you are not allowed to edit this user.'));
|
||||||
|
|
||||||
|
$title = sprintf( $title, $profileuser->display_name );
|
||||||
$sessions = WP_Session_Tokens::get_instance( $profileuser->ID );
|
$sessions = WP_Session_Tokens::get_instance( $profileuser->ID );
|
||||||
|
|
||||||
include(ABSPATH . 'wp-admin/admin-header.php');
|
include(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-39906';
|
$wp_version = '4.8-alpha-39907';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue