Make WordPress Core

Changeset 58748


Ignore:
Timestamp:
07/18/2024 12:50:16 AM (5 months ago)
Author:
joedolson
Message:

Toolbar: Move user and recovery menus to a higher priority.

Following [58215], admin bar items in the top-secondary group have a changed visual order. Increase the priority of the user and recovery menu items so nodes added with higher priorities will still be shown visually before the user and recovery menu items, as they were prior to 58215.

The items will appear in the reverse of the previous order, but the new order now matches their priority order, rather than being the opposite.

Props sabernhardt, joemcgill, pbiron, joedolson.
Fixes #61615.

File:
1 edited

Legend:

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

    r58438 r58748  
    649649        // User-related, aligned right.
    650650        add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 );
    651         add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 7 );
    652         add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 8 );
     651        add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 9991 );
     652        add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 9992 );
    653653        add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 9999 );
    654654
Note: See TracChangeset for help on using the changeset viewer.