WordPress.org

Make WordPress Core

Changeset 23360


Ignore:
Timestamp:
01/31/13 01:39:08 (3 years ago)
Author:
SergeyBiryukov
Message:

Display username (user_login) rather than user_nicename in Toolbar. fixes #22121.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r22908 r23360  
    175175    $user_info .= "<span class='display-name'>{$current_user->display_name}</span>"; 
    176176 
    177     if ( $current_user->display_name !== $current_user->user_nicename ) 
    178         $user_info .= "<span class='username'>{$current_user->user_nicename}</span>"; 
     177    if ( $current_user->display_name !== $current_user->user_login ) 
     178        $user_info .= "<span class='username'>{$current_user->user_login}</span>"; 
    179179 
    180180    $wp_admin_bar->add_menu( array( 
Note: See TracChangeset for help on using the changeset viewer.