From b037dc4c00280df9b40ab598758f4954aeb223bc Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Tue, 18 Jun 2024 14:52:07 +0000 Subject: [PATCH] Toolbar: Fix ARIA [role] on menu descendants. Adds a `role="group"` to the WordPress admin bar menu list items to fix the following accessibility issue: {{{ Elements with an ARIA [role] that require children to contain a specific [role] are missing some or all of those required children. }}} Reference: * [https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/group_role ARIA: group role] via mdn web docs Follow-up to [42128], [21193], [19558]. Props heinperu, joedolson, krupajnanda, rajinsharwar, rcreators, sabernhardt. Fixes #60919. Built from https://develop.svn.wordpress.org/trunk@58438 git-svn-id: http://core.svn.wordpress.org/trunk@57887 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-admin-bar.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index 190fc030d0..ee3d6d1baa 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 "
  • id ) . "'$menuclass>"; + echo "
  • id ) . "'$menuclass>"; if ( $has_link ) { $attributes = array( 'onclick', 'target', 'title', 'rel', 'lang', 'dir' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index cbf661fdf0..ab0ed08917 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-beta2-58437'; +$wp_version = '6.6-beta2-58438'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.