WordPress.org

Make WordPress Core

Ticket #34668: 34668.patch

File 34668.patch, 462 bytes (added by Cheffheid, 4 years ago)

Appends role="menuitem" to toolbar menu item parent ARIA attributes

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

     
    485485
    486486                if ( $is_parent ) {
    487487                        $menuclass = 'menupop ';
    488                         $aria_attributes .= ' aria-haspopup="true"';
     488                        $aria_attributes .= ' aria-haspopup="true" role="menuitem"';
    489489                }
    490490
    491491                if ( ! empty( $node->meta['class'] ) )