From c7fdc6880ece798a2061d92d95659254fda2872c Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Thu, 18 Jul 2024 16:45:13 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/branches/6.6@58759 git-svn-id: http://core.svn.wordpress.org/branches/6.6@58161 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-admin-bar.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index ee3d6d1baa..dfebbb20e4 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -648,8 +648,8 @@ class WP_Admin_Bar { public function add_menus() { // User-related, aligned right. add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 ); - add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 7 ); - add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 8 ); + add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 9991 ); + add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 9992 ); add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 9999 ); // Site-related. diff --git a/wp-includes/version.php b/wp-includes/version.php index 644854b92b..c7f5632910 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6.1-alpha-58758'; +$wp_version = '6.6.1-alpha-58759'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.