mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Twenty Seventeen: Fix supportsInlineSVG() being unnecessarily called twice
* Also, fix spacing inconsistency in comment. Props tywayne. Fixes #38556. git-svn-id: https://develop.svn.wordpress.org/trunk@39081 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 = '<svg/>';
|
||||
@@ -172,7 +172,6 @@
|
||||
|
||||
adjustHeaderHeight();
|
||||
setQuotesIcon();
|
||||
supportsInlineSVG();
|
||||
if ( true === supportsInlineSVG() ) {
|
||||
document.documentElement.className = document.documentElement.className.replace( /(\s*)no-svg(\s*)/, '$1svg$2' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user