Make WordPress Core


Ignore:
Timestamp:
03/15/2015 07:59:53 PM (9 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: add ARIA attributes to menu toggle. See #31527.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/header.php

    r29842 r31784  
    5252                <button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
    5353                <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a>
    54                 <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
     54                <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'menu_id' => 'primary-menu' ) ); ?>
    5555            </nav>
    5656        </div>
Note: See TracChangeset for help on using the changeset viewer.