diff --git a/wp-content/themes/twentyseventeen/assets/js/navigation.js b/wp-content/themes/twentyseventeen/assets/js/navigation.js index c1af2af3fa..da50e0fae1 100644 --- a/wp-content/themes/twentyseventeen/assets/js/navigation.js +++ b/wp-content/themes/twentyseventeen/assets/js/navigation.js @@ -6,7 +6,7 @@ */ (function( $ ) { - var masthead, menuToggle, siteNavigation; + var masthead, menuToggle, siteNavContain, siteNavigation; function initMainNavigation( container ) { @@ -39,6 +39,7 @@ masthead = $( '#masthead' ); menuToggle = masthead.find( '.menu-toggle' ); + siteNavContain = masthead.find( '.main-navigation' ); siteNavigation = masthead.find( '.main-navigation > div > ul' ); // Enable menuToggle. @@ -53,7 +54,7 @@ menuToggle.add( siteNavigation ).attr( 'aria-expanded', 'false' ); menuToggle.on( 'click.twentyseventeen', function() { - $( siteNavigation.closest( '.main-navigation' ), this ).toggleClass( 'toggled-on' ); + $( siteNavContain ).toggleClass( 'toggled-on' ); $( this ) .add( siteNavigation ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 569a7e6a91..6eb3674e90 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-RC1-39422'; +$wp_version = '4.7-RC1-39423'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.