From 18e747d029f78b86d0c61252db5147118847b793 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Mon, 20 Aug 2012 19:14:51 +0000 Subject: [PATCH] Twenty Twelve: re-implement the hiding of toggle element when empty menu is present, see #21562 and r21520 props cfinke. git-svn-id: http://core.svn.wordpress.org/trunk@21557 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- js/navigation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/navigation.js b/js/navigation.js index 72900e242..34dcf5f49 100644 --- a/js/navigation.js +++ b/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() {