WordPress.org

Make WordPress Core

Ticket #11332: 11332.diff

File 11332.diff, 1.5 KB (added by dd32, 8 years ago)
  • wp-admin/admin-header.php

     
    103103
    104104<img id="header-logo" src="../wp-includes/images/blank.gif" alt="" width="32" height="32" /> <h1 id="site-heading" <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit Site') ?>"><span id="site-title"><?php echo $blog_name ?></span> <em id="site-visit-button"><?php _e('Visit Site') ?></em></a></h1>
    105105
     106<?php do_action('in_admin_header'); ?>
     107
    106108<div id="wphead-info">
    107109<div id="user_info">
    108 <p><?php printf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity) ?>
    109 <?php if ( ! $is_opera ) { ?><span class="turbo-nag hidden"> | <a href="tools.php"><?php _e('Turbo') ?></a></span><?php } ?> |
    110 <a href="<?php echo wp_logout_url() ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a></p>
     110<p><?php
     111$links = array();
     112$links[5] = sprintf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity);
     113if ( ! $is_opera )
     114        $links[10] = '<span class="turbo-nag hidden"> | <a href="tools.php">' . __('Turbo') . '</a></span>';
     115$links[15] = ' | <a href="' . wp_logout_url() . '" title="' . __('Log Out') . '">' . __('Log Out') . '</a>';
     116
     117$links = apply_filters('admin_user_info_links', $links, $current_user);
     118ksort($links);
     119
     120echo implode(' ', $links); ?></p>
    111121</div>
    112122
    113123<?php favorite_actions($hook_suffix); ?>