From 4b3a9de5b59a5892fbdae7cf93044dc338195aeb Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Tue, 1 Nov 2016 21:24:30 +0000 Subject: [PATCH] Twenty Seventeen: Fix `supportsInlineSVG()` being unnecessarily called twice * Also, fix spacing inconsistency in comment. Props tywayne. Fixes #38556. Built from https://develop.svn.wordpress.org/trunk@39081 git-svn-id: http://core.svn.wordpress.org/trunk@39023 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/assets/js/global.js | 7 +++---- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/wp-content/themes/twentyseventeen/assets/js/global.js b/wp-content/themes/twentyseventeen/assets/js/global.js index 8c103d6ebe..de64a9c2d7 100644 --- a/wp-content/themes/twentyseventeen/assets/js/global.js +++ b/wp-content/themes/twentyseventeen/assets/js/global.js @@ -130,9 +130,9 @@ } /** - * Test if inline SVGs are supported. - * @link https://github.com/Modernizr/Modernizr/ - */ + * Test if inline SVGs are supported. + * @link https://github.com/Modernizr/Modernizr/ + */ function supportsInlineSVG() { var div = document.createElement( 'div' ); div.innerHTML = ''; @@ -172,7 +172,6 @@ adjustHeaderHeight(); setQuotesIcon(); - supportsInlineSVG(); if ( true === supportsInlineSVG() ) { document.documentElement.className = document.documentElement.className.replace( /(\s*)no-svg(\s*)/, '$1svg$2' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index e36894f3c1..661b3d0c68 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta1-39080'; +$wp_version = '4.7-beta1-39081'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.