WordPress.org

Make WordPress Core

Changeset 19548


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

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu-header.php

    r19528 r19548  
    4242        $admin_is_parent = false;
    4343        $class = array();
    44         $aria_attributes = 'tabindex="1" role="menuitem"';
     44        $aria_attributes = 'tabindex="1"';
    4545
    4646        if ( $first ) {
     
    105105
    106106        if ( ! empty( $submenu_items ) ) {
    107             echo "\n\t<div class='wp-submenu' role='menu'><div class='wp-submenu-wrap'>";
     107            echo "\n\t<div class='wp-submenu'><div class='wp-submenu-wrap'>";
    108108            echo "<div class='wp-submenu-head'>{$item[0]}</div><ul>";
    109109            $first = true;
     
    112112                    continue;
    113113
    114                 $aria_attributes = 'tabindex="1" role="menuitem"';
     114                $aria_attributes = 'tabindex="1"';
    115115                $class = array();
    116116                if ( $first ) {
     
    174174
    175175<div id="adminmenuback"></div>
    176 <div id="adminmenuwrap" role="navigation">
     176<div id="adminmenuwrap">
    177177<div id="adminmenushadow"></div>
    178 <ul id="adminmenu" role="menu">
     178<ul id="adminmenu" role="navigation">
    179179
    180180<?php
  • 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.