diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 1c390c9bc7..80cef618e5 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -25,7 +25,13 @@ elseif ( ! get_userdata( $user_id ) ) 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 ) $submenu_file = 'users.php'; else @@ -166,6 +172,7 @@ $profileuser = get_user_to_edit($user_id); if ( !current_user_can('edit_user', $user_id) ) 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 ); include(ABSPATH . 'wp-admin/admin-header.php'); diff --git a/wp-includes/version.php b/wp-includes/version.php index 47fc7492be..9d8d3544d2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.