Ticket #34033: 34033-4.diff
File 34033-4.diff, 2.1 KB (added by , 9 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 } -
src/wp-content/themes/twentyfourteen/js/functions.js
16 16 17 17 // Enable menu toggle for small screens. 18 18 ( function() { 19 if ( ! nav || ! button) {19 if ( ! nav.length || ! button.length ) { 20 20 return; 21 21 } 22 22 23 23 // Hide button if menu is missing or empty. 24 if ( ! menu || ! menu.children().length ) {24 if ( ! menu.length || ! menu.children().length ) { 25 25 button.hide(); 26 26 return; 27 27 } -
src/wp-content/themes/twentythirteen/js/functions.js
34 34 * Enables menu toggle for small screens. 35 35 */ 36 36 ( function() { 37 if ( ! nav || ! button) {37 if ( ! nav.length || ! button.length ) { 38 38 return; 39 39 } 40 40 41 41 // Hide button if menu is missing or empty. 42 if ( ! menu || ! menu.children().length ) {42 if ( ! menu.length || ! menu.children().length ) { 43 43 button.hide(); 44 44 return; 45 45 }