Make WordPress Core


Ignore:
Timestamp:
12/05/2011 05:47:23 PM (13 years ago)
Author:
azaozz
Message:

Remove role="menu" and role="menuitem" for now, fixes #19394

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-admin-bar.php

    r19519 r19548  
    227227        ?>
    228228        <div id="wpadminbar" class="<?php echo $class; ?>" role="navigation">
    229             <div class="quicklinks" role="menubar">
     229            <div class="quicklinks">
    230230                <?php foreach ( $this->get_node( 'root' )->children as $group ) {
    231231                    $this->_render_group( $group, 'ab-top-menu' );
     
    264264                $class .= ' ' . $node->meta['class'];
    265265
    266             ?><ul id="<?php echo esc_attr( "wp-admin-bar-{$node->id}" ); ?>" class="<?php echo esc_attr( $class ); ?>" role="menu"><?php
     266            ?><ul id="<?php echo esc_attr( "wp-admin-bar-{$node->id}" ); ?>" class="<?php echo esc_attr( $class ); ?>"><?php
    267267                foreach ( $node->children as $item ) {
    268268                    $this->_render_item( $item );
     
    272272        // Wrap the subgroups in a div and render each individual subgroup.
    273273        elseif ( ! $is_single_group ) :
    274             ?><div id="<?php echo esc_attr( "wp-admin-bar-{$node->id}-container" ); ?>" class="ab-group-container" role="menu"><?php
     274            ?><div id="<?php echo esc_attr( "wp-admin-bar-{$node->id}-container" ); ?>" class="ab-group-container"><?php
    275275                foreach ( $groups as $group ) {
    276276                    $this->_render_group( $group, $class );
     
    290290
    291291        $menuclass = '';
    292         $aria_attributes = 'tabindex="' . $tabindex . '" role="menuitem"';
     292        $aria_attributes = 'tabindex="' . $tabindex . '"';
    293293
    294294        if ( $is_parent ) {
Note: See TracChangeset for help on using the changeset viewer.