summaryrefslogtreecommitdiffstats
path: root/wp-includes/class-wp-admin-bar.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
commit0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch)
treee139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/class-wp-admin-bar.php
parentAdding upstream version 6.5.5+dfsg1. (diff)
downloadwordpress-upstream.tar.xz
wordpress-upstream.zip
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--wp-includes/class-wp-admin-bar.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php
index 093ed01..dfebbb2 100644
--- a/wp-includes/class-wp-admin-bar.php
+++ b/wp-includes/class-wp-admin-bar.php
@@ -575,7 +575,7 @@ class WP_Admin_Bar {
$menuclass = ' class="' . esc_attr( trim( $menuclass ) ) . '"';
}
- echo "<li id='" . esc_attr( 'wp-admin-bar-' . $node->id ) . "'$menuclass>";
+ echo "<li role='group' id='" . esc_attr( 'wp-admin-bar-' . $node->id ) . "'$menuclass>";
if ( $has_link ) {
$attributes = array( 'onclick', 'target', 'title', 'rel', 'lang', 'dir' );
@@ -648,9 +648,9 @@ 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_search_menu', 4 );
- 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.
add_action( 'admin_bar_menu', 'wp_admin_bar_sidebar_toggle', 0 );