diff --git a/dependency-minification.php b/dependency-minification.php index bd2e385..9e83835 100644 --- a/dependency-minification.php +++ b/dependency-minification.php @@ -512,7 +512,7 @@ static function get_dependency_minified_url( array $deps, $type ) { $ver_hash, $type === 'scripts' ? 'js' : 'css', ) ); - return $src; + return preg_replace( '#^https?:(?=//)#', '', $src ); } /**