Ticket #34033: 34033-1.diff
File 34033-1.diff, 869 bytes (added by , 10 years ago) |
---|
-
src/wp-content/themes/twentyfifteen/js/functions.js
49 49 // Enable menu toggle for small screens. 50 50 ( function() { 51 51 var menu, widgets, social; 52 if ( ! secondary || ! button) {52 if ( ! secondary.length || ! button.length ) { 53 53 return; 54 54 } 55 55 … … 57 57 menu = secondary.find( '.nav-menu' ); 58 58 widgets = secondary.find( '#widget-area' ); 59 59 social = secondary.find( '#social-navigation' ); 60 if ( ! widgets.length && ! social.length && ( ! menu || ! menu.children().length ) ) {60 if ( ! widgets.length && ! social.length && ( ! menu.length || ! menu.children().length ) ) { 61 61 button.hide(); 62 62 return; 63 63 }