Make WordPress Core

Changeset 58759 for branches/6.6


Ignore:
Timestamp:
07/18/2024 04:43:15 PM (2 months ago)
Author:
hellofromTonya
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.

Reviewed by hellofromTonya.
Merges [58748] to the 6.6 branch.

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

Location:
branches/6.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.6

  • branches/6.6/src/wp-includes/class-wp-admin-bar.php

    r58438 r58759  
    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.