Skip to content

Commit

Permalink
Fixes quotes bug introduced in futtta#106
Browse files Browse the repository at this point in the history
  • Loading branch information
asadkn committed Jul 25, 2017
1 parent fcb6b31 commit 1165d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/autoptimizeStyles.php
Expand Up @@ -545,7 +545,7 @@ public function getcontent() {
if($this->defer == true) {

// Filter to modify the onload attribute - passes value and the stylesheet url
$preloadOnLoad = apply_filters('autoptimize_filter_css_preload_onload', "this.rel=\'stylesheet\'", $url);
$preloadOnLoad = apply_filters('autoptimize_filter_css_preload_onload', "this.rel='stylesheet'", $url);

$preloadCssBlock .= '<link rel="preload" as="style" media="'.$media.'" href="'.$url.'" onload="'.$preloadOnLoad.'" />';
$noScriptCssBlock .= '<link type="text/css" media="'.$media.'" href="'.$url.'" rel="stylesheet" />';
Expand Down

0 comments on commit 1165d1c

Please sign in to comment.