WordPress.org

Make WordPress Core

Changeset 39907


Ignore:
Timestamp:
01/15/17 07:13:11 (8 months ago)
Author:
SergeyBiryukov
Message:

Users: Display the name of user being edited on Edit User screen.

Props seanchayes.
Fixes #28182.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r39538 r39907  
    2626wp_enqueue_script('user-profile'); 
    2727 
    28 $title = IS_PROFILE_PAGE ? __('Profile') : __('Edit User'); 
     28if ( IS_PROFILE_PAGE ) { 
     29    $title = __( 'Profile' ); 
     30} else { 
     31    /* translators: %s: user's display name */ 
     32    $title = __( 'Edit User %s' ); 
     33} 
     34 
    2935if ( current_user_can('edit_users') && !IS_PROFILE_PAGE ) 
    3036    $submenu_file = 'users.php'; 
     
    167173    wp_die(__('Sorry, you are not allowed to edit this user.')); 
    168174 
     175$title = sprintf( $title, $profileuser->display_name ); 
    169176$sessions = WP_Session_Tokens::get_instance( $profileuser->ID ); 
    170177 
Note: See TracChangeset for help on using the changeset viewer.