Skip to content

Commit

Permalink
use correct base url
Browse files Browse the repository at this point in the history
applied for minify assets when "url rewrite" is switched off
  • Loading branch information
maxicus committed Aug 2, 2019
1 parent fc70acc commit 83987e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Minify_Core.php
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 );
}


Expand Down

0 comments on commit 83987e5

Please sign in to comment.