Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dependency-minification.php
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,8 @@ static function minify( $cached ) {

// Dependency is not self-hosted or it the filesystem read failed, so do HTTP request
if ( false === $contents ) {
$r = wp_remote_get( $src );
$sslverify = apply_filters( 'depmin_https_ssl_verify', empty( $GLOBALS['is_IIS'] ), $src );
$r = wp_remote_get( $src, compact( 'sslverify' ) );
if ( is_wp_error($r) ) {
throw new Exception("Failed to retrieve $src: " . $r->get_error_message());
} elseif ( intval( wp_remote_retrieve_response_code( $r ) ) !== 200 ) {
Expand Down