WordPress.org

Make WordPress Core

Changeset 18232


Ignore:
Timestamp:
06/10/11 16:40:42 (4 years ago)
Author:
ryan
Message:

Add Howdy back to the admin_user_info_links filtered array. Props trepmal. fixes #17740

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r18125 r18232  
    150150do_action('in_admin_header'); 
    151151 
     152$links = array(); 
     153 
    152154// Generate user profile and info links. 
    153 $howdy = sprintf( __('Howdy, %1$s'), $user_identity ); 
    154 $links = array(); 
    155  
    156 $links[5] = '<a href="profile.php" title="' . esc_attr__('Edit your profile') . '">' . __('Your Profile') . '</a>'; 
     155$links[5] = sprintf( __('Howdy, %1$s'), $user_identity ); 
     156 
     157$links[8] = '<a href="profile.php" title="' . esc_attr__('Edit your profile') . '">' . __('Your Profile') . '</a>'; 
    157158 
    158159if ( is_multisite() && is_super_admin() ) { 
     
    170171// Trim whitespace and pipes from links, then convert to list items. 
    171172$links = array_map( 'trim', $links, array_fill( 0, count( $links ), " |\n\t" ) ); 
     173 
     174$howdy = array_shift( $links ); 
    172175 
    173176$links_no_js = implode( ' | ', $links ); 
Note: See TracChangeset for help on using the changeset viewer.