Merge pull request #657 from jaspermdegroot/header

Made aria-controls refer to an ID instead of a class. Prevents ARIA error.
This commit is contained in:
David A. Kennedy 2015-03-03 19:54:55 -05:00
commit 68fb7912ef
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@
</div><!-- .site-branding -->
<nav id="site-navigation" class="main-navigation" role="navigation">
<button class="menu-toggle" aria-controls="menu" aria-expanded="false"><?php _e( 'Primary Menu', '_s' ); ?></button>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php _e( 'Primary Menu', '_s' ); ?></button>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->