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

git-svn-id: https://develop.svn.wordpress.org/trunk@18232 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-06-10 16:40:42 +00:00
parent 72a3e41d0b
commit ab5bd75114

View File

@ -149,11 +149,12 @@ if ( function_exists('mb_strlen') ) {
do_action('in_admin_header');
// Generate user profile and info links.
$howdy = sprintf( __('Howdy, %1$s'), $user_identity );
$links = array();
$links[5] = '<a href="profile.php" title="' . esc_attr__('Edit your profile') . '">' . __('Your Profile') . '</a>';
// Generate user profile and info links.
$links[5] = sprintf( __('Howdy, %1$s'), $user_identity );
$links[8] = '<a href="profile.php" title="' . esc_attr__('Edit your profile') . '">' . __('Your Profile') . '</a>';
if ( is_multisite() && is_super_admin() ) {
if ( !is_network_admin() )
@ -170,6 +171,8 @@ ksort( $links );
// Trim whitespace and pipes from links, then convert to list items.
$links = array_map( 'trim', $links, array_fill( 0, count( $links ), " |\n\t" ) );
$howdy = array_shift( $links );
$links_no_js = implode( ' | ', $links );
$links_js = '<li>' . implode( '</li><li>', $links ) . '</li>';