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
This commit is contained in:
parent
786a5de88f
commit
1dabc15e34
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue