Ticket #17740: admin-header.diff
| File admin-header.diff, 1.3 KB (added by trepmal, 2 years ago) |
|---|
-
wp-admin/admin-header.php
149 149 150 150 do_action('in_admin_header'); 151 151 152 // Generate user profile and info links.153 $howdy = sprintf( __('Howdy, %1$s'), $user_identity );154 152 $links = array(); 155 153 156 $links[5] = '<a href="profile.php" title="' . esc_attr__('Edit your profile') . '">' . __('Your Profile') . '</a>'; 154 // Generate user profile and info links. 155 $links[5] = sprintf( __('Howdy, %1$s'), $user_identity ); 157 156 157 $links[8] = '<a href="profile.php" title="' . esc_attr__('Edit your profile') . '">' . __('Your Profile') . '</a>'; 158 158 159 if ( is_multisite() && is_super_admin() ) { 159 160 if ( !is_network_admin() ) 160 161 $links[10] = '<a href="' . network_admin_url() . '" title="' . ( ! empty( $update_title ) ? $update_title : esc_attr__('Network Admin') ) . '">' . __('Network Admin') . ( ! empty( $total_update_count ) ? ' (' . number_format_i18n( $total_update_count ) . ')' : '' ) . '</a>'; … … 170 171 // Trim whitespace and pipes from links, then convert to list items. 171 172 $links = array_map( 'trim', $links, array_fill( 0, count( $links ), " |\n\t" ) ); 172 173 174 $howdy = array_shift( $links ); 175 173 176 $links_no_js = implode( ' | ', $links ); 174 177 $links_js = '<li>' . implode( '</li><li>', $links ) . '</li>'; 175 178
