WordPress.org

Make WordPress Core

Ticket #17740: admin-header.diff

File admin-header.diff, 1.3 KB (added by trepmal, 7 years ago)

really the correct version (shoot me now)

  • wp-admin/admin-header.php

     
    149149
    150150do_action('in_admin_header');
    151151
    152 // Generate user profile and info links.
    153 $howdy = sprintf( __('Howdy, %1$s'), $user_identity );
    154152$links = array();
    155153
    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 );
    157156
     157$links[8] = '<a href="profile.php" title="' . esc_attr__('Edit your profile') . '">' . __('Your Profile') . '</a>';
     158
    158159if ( is_multisite() && is_super_admin() ) {
    159160        if ( !is_network_admin() )
    160161                $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>';
     
    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" ) );
    172173
     174$howdy = array_shift( $links );
     175
    173176$links_no_js = implode( ' | ', $links );
    174177$links_js = '<li>' . implode( '</li><li>', $links ) . '</li>';
    175178