Skip to content

Commit

Permalink
Protocol-relative links for minify endpoints, fixes xwp#50
Browse files Browse the repository at this point in the history
we are currently using get_option( "home" ) to build the $src address.
wordpress does not support protocol relative home address still as of 3.9,
see https://core.trac.wordpress.org/ticket/21153
  • Loading branch information
leho committed Apr 25, 2014
1 parent c579d69 commit b2aff55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dependency-minification.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand Down

0 comments on commit b2aff55

Please sign in to comment.