WordPress.org

Make WordPress Core

Ticket #22121: 22121.patch

File 22121.patch, 710 bytes (added by SergeyBiryukov, 6 years ago)
  • wp-includes/admin-bar.php

     
    174174        $user_info  = get_avatar( $user_id, 64 );
    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(
    181181                'parent' => 'user-actions',