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-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
Note: See TracChangeset for help on using the changeset viewer.