Skip to content
Permalink
Browse files

use correct base url

applied for minify assets when "url rewrite" is switched off
  • Loading branch information...
maxicus committed Aug 2, 2019
1 parent fc70acc commit 83987e57f2da403fbe15fc2da15df691ee195a44
Showing with 3 additions and 3 deletions.
  1. +3 −3 Minify_Core.php
@@ -70,11 +70,11 @@ static public function minify_filename_to_urls_for_minification( $filename, $typ
continue;
if ( !$external_regexp &&
preg_match( '~^' . Util_Environment::get_url_regexp( $ext ) . '~', $file ) &&
preg_match( '~^' . Util_Environment::get_url_regexp( $ext ) . '~', $file ) &&
!$verified ) {
$verified = true;
}
if ( $external_regexp &&
if ( $external_regexp &&
preg_match( '~' . $ext . '~', $file ) && !$verified ) {
$verified = true;
}
@@ -115,7 +115,7 @@ static public function minified_url( $minify_filename ) {
return Util_Environment::filename_to_url( $filename );
}
return network_site_url( '?w3tc_minify=' . $minify_filename );
return home_url( '?w3tc_minify=' . $minify_filename );
}

0 comments on commit 83987e5

Please sign in to comment.
You can’t perform that action at this time.