Make WordPress Core

Ticket #61615: 61615.diff

File 61615.diff, 777 bytes (added by sabernhardt, 2 months ago)

moves user menu and recovery mode nodes from priority levels 7 and 8 to 9991 and 9992

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

     
    648648        public function add_menus() {
    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
    655655                // Site-related.