diff --git a/wp-content/themes/twentyseventeen/assets/js/skip-link-focus-fix.js b/wp-content/themes/twentyseventeen/assets/js/skip-link-focus-fix.js index a39cefbfe1..0d5b4203ab 100644 --- a/wp-content/themes/twentyseventeen/assets/js/skip-link-focus-fix.js +++ b/wp-content/themes/twentyseventeen/assets/js/skip-link-focus-fix.js @@ -6,11 +6,9 @@ * Learn more: https://git.io/vWdr2 */ ( function() { - var isWebkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, - isOpera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, - isIe = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; + var isIe = /(trident|msie)/i.test( navigator.userAgent ); - if ( ( isWebkit || isOpera || isIe ) && document.getElementById && window.addEventListener ) { + if ( isIe && document.getElementById && window.addEventListener ) { window.addEventListener( 'hashchange', function() { var id = location.hash.substring( 1 ), element; diff --git a/wp-content/themes/twentyseventeen/style.css b/wp-content/themes/twentyseventeen/style.css index acd1b61a4d..a1fbe7254d 100644 --- a/wp-content/themes/twentyseventeen/style.css +++ b/wp-content/themes/twentyseventeen/style.css @@ -330,12 +330,6 @@ template { z-index: 100000; /* Above WP toolbar. */ } -/* Do not show the outline on the skip link target. */ - -#content[tabindex="-1"]:focus { - outline: 0; -} - /*-------------------------------------------------------------- # Alignments --------------------------------------------------------------*/ diff --git a/wp-includes/version.php b/wp-includes/version.php index 1220ded253..dd9fc2cdf2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta1-39134'; +$wp_version = '4.7-beta1-39135'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.