From a6df2cced5a8afb22d5cb4e59166f8a42c97ea09 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Wed, 26 Oct 2016 17:39:31 +0000 Subject: [PATCH] Twenty Seventeen: Fix header height on sub-pages. Moves `setNavProps` so it's no longer only fired on load when the scroll down arrow is present. Props laurelfulford. Fixes #38496. Built from https://develop.svn.wordpress.org/trunk@38964 git-svn-id: http://core.svn.wordpress.org/trunk@38907 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/assets/js/global.js | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyseventeen/assets/js/global.js b/wp-content/themes/twentyseventeen/assets/js/global.js index 1f707b3384..af41bde05b 100644 --- a/wp-content/themes/twentyseventeen/assets/js/global.js +++ b/wp-content/themes/twentyseventeen/assets/js/global.js @@ -143,6 +143,8 @@ $( document ).ready( function() { // Let's fire some JavaScript! + setNavProps(); + if ( $menuScrollDown.length ) { /** @@ -162,7 +164,6 @@ } ); } ); - setNavProps(); adjustScrollClass(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index b54f3a4f63..77769cb02c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38963'; +$wp_version = '4.7-alpha-38964'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.