Permalink
Browse files

fix in fixurl to make fix issue reported in https://wordpress.org/sup…

  • Loading branch information...
futtta committed Jul 13, 2017
1 parent 1c95ce0 commit 62d1fed4939763bd4067f3f1250079bfaff8367e
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/autoptimizeStyles.php
@@ -571,7 +571,7 @@ public function getcontent() {
static function fixurls($file, $code) {
// Switch all imports to the url() syntax
$code = preg_replace( '#@import ("|\')(.+?)\.css.*("|\')#', '@import url("${2}.css")', $code );
$code = preg_replace( '#@import ("|\')(.+?)\.css.*?("|\')#', '@import url("${2}.css")', $code );
if ( preg_match_all( self::ASSETS_REGEX, $code, $matches ) ) {
$file = str_replace( WP_ROOT_DIR, '/', $file );

1 comment on commit 62d1fed

@futtta

This comment has been minimized.

Show comment
Hide comment
Owner

futtta commented on 62d1fed Jul 13, 2017

Please sign in to comment.