WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/01/2011 03:03:12 AM (10 years ago)
Author:
koopersmith
Message:

In toolbar, move search item to the right of the account menu and make it icon-only. fixes #19370, #19406.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-admin-bar.php

    r19501 r19518  
    353353    public function add_menus() {
    354354        // User related, aligned right.
    355         add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 10 );
     355        add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 10 );
     356        add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 20 );
    356357
    357358        // Site related.
     
    369370        add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu', 90 );
    370371
    371         if ( ! is_admin() )
    372             add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 100 );
    373 
    374372        add_action( 'admin_bar_menu', 'wp_admin_bar_add_secondary_groups', 200 );
    375373
Note: See TracChangeset for help on using the changeset viewer.