Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Twenty Twelve: re-implement the hiding of toggle element when empty m…

…enu is present, see #21562 and r21520 props cfinke.

git-svn-id: http://core.svn.wordpress.org/trunk@21557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 1dabc15e34a41ace2eb52f05a47b0be3c5a97949 1 parent 786a5de
Lance Willett authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 wp-content/themes/twentytwelve/js/navigation.js
View
4 wp-content/themes/twentytwelve/js/navigation.js
@@ -5,8 +5,8 @@
*/
jQuery( document ).ready( function( $ ) {
- if ( $( '#masthead .menu' ).children().length ) {
- $( '#masthead h3.assistive-text' ).addClass( 'menu-toggle' );
+ if ( ! $( '#masthead .menu' ).children().length ) {
+ $( '#masthead .menu-toggle' ).hide();
}
$( '.menu-toggle' ).off( 'click' ).click( function() {
Please sign in to comment.
Something went wrong with that request. Please try again.