From e5765caf3b12aa91c325f0ac6e8223e79a3dc5da Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 10 Jun 2011 16:40:42 +0000 Subject: [PATCH] Add Howdy back to the admin_user_info_links filtered array. Props trepmal. fixes #17740 git-svn-id: http://svn.automattic.com/wordpress/trunk@18232 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 11f91d67f..50924d7f5 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -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] = '' . __('Your Profile') . ''; +// Generate user profile and info links. +$links[5] = sprintf( __('Howdy, %1$s'), $user_identity ); + +$links[8] = '' . __('Your Profile') . ''; 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 = '
  • ' . implode( '
  • ', $links ) . '
  • ';