From 05c7351e537084305b4236113534063b05c4affa Mon Sep 17 00:00:00 2001 From: joedolson Date: Thu, 18 Jul 2024 00:52:17 +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. Props sabernhardt, joemcgill, pbiron, joedolson. Fixes #61615. Built from https://develop.svn.wordpress.org/trunk@58748 git-svn-id: http://core.svn.wordpress.org/trunk@58150 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 a471f30ce5..682dfcb12e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58747'; +$wp_version = '6.7-alpha-58748'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.