WordPress.org

Make WordPress Core

Changeset 13497


Ignore:
Timestamp:
02/28/2010 10:23:55 AM (11 years ago)
Author:
dd32
Message:

Add some filters to the Admin header. Fixes #11332

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r13256 r13497  
    9898<img id="header-logo" src="<?php echo esc_url( includes_url( '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 esc_attr_e('Visit Site') ?>"><span id="site-title"><?php echo $blog_name ?></span> <em id="site-visit-button"><?php _e('Visit Site') ?></em></a><?php if ( ! get_option('blog_public') ) { ?> <a id="privacy-on-link" href="options-privacy.php" title="<?php esc_attr_e('Your blog is hidden from search engines') ?>"><?php _e('Privacy On') ?></a><?php } ?></h1>
    9999
     100<?php do_action('in_admin_header'); ?>
     101
    100102<div id="wphead-info">
    101103<div id="user_info">
    102 <p><?php printf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity) ?>
    103 <?php if ( ! $is_opera ) { ?><span class="turbo-nag hidden"> | <a href="tools.php"><?php _e('Turbo') ?></a></span><?php } ?> |
    104 <a href="<?php echo wp_logout_url() ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a></p>
     104<p><?php
     105$links = array();
     106$links[5] = sprintf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity);
     107if ( ! $is_opera )
     108    $links[10] = '<span class="turbo-nag hidden"> | <a href="tools.php">' . __('Turbo') . '</a></span>';
     109$links[15] = '| <a href="' . wp_logout_url() . '" title="' . __('Log Out') . '">' . __('Log Out') . '</a>';
     110
     111$links = apply_filters('admin_user_info_links', $links, $current_user);
     112ksort($links);
     113
     114echo implode(' ', $links);
     115?></p>
    105116</div>
    106117
Note: See TracChangeset for help on using the changeset viewer.