Make WordPress Core

Ticket #60919: 60919.diff

File 60919.diff, 614 bytes (added by joedolson, 4 months ago)

Add role="group" to menu descendants.

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

     
    575575                        $menuclass = ' class="' . esc_attr( trim( $menuclass ) ) . '"';
    576576                }
    577577
    578                 echo "<li id='" . esc_attr( 'wp-admin-bar-' . $node->id ) . "'$menuclass>";
     578                echo "<li role='group' id='" . esc_attr( 'wp-admin-bar-' . $node->id ) . "'$menuclass>";
    579579
    580580                if ( $has_link ) {
    581581                        $attributes = array( 'onclick', 'target', 'title', 'rel', 'lang', 'dir' );