From 5452a6a21d2019fa8c37da31e5b36091b7ce9cc2 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Mon, 24 Oct 2016 17:59:47 +0000 Subject: [PATCH] Twenty Seventeen: Fix smooth scrolling skip link The link was scrolling too far. The main problem was that the `menuTop` variable lost it's initial definition of `0`, so all future subtractions were failing. Props tywayne. Fixes #38448. Built from https://develop.svn.wordpress.org/trunk@38886 git-svn-id: http://core.svn.wordpress.org/trunk@38829 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/assets/js/global.js | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentyseventeen/assets/js/global.js b/wp-content/themes/twentyseventeen/assets/js/global.js index b4141c288e..14863b09ee 100644 --- a/wp-content/themes/twentyseventeen/assets/js/global.js +++ b/wp-content/themes/twentyseventeen/assets/js/global.js @@ -23,7 +23,7 @@ idealNavHeight, navIsNotTooTall, headerOffset, - menuTop, + menuTop = 0, resizeTimer; /** @@ -149,7 +149,7 @@ * 'Scroll Down' arrow in menu area */ if ( $( 'body' ).hasClass( 'admin-bar' ) ) { - menuTop = -32; + menuTop -= 32; } if ( $( 'body' ).hasClass( 'blog' ) ) { menuTop -= 30; // The div for latest posts has no space above content, add some to account for this diff --git a/wp-includes/version.php b/wp-includes/version.php index 9a88a1a388..b28ed08ed8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38885'; +$wp_version = '4.7-alpha-38886'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.