avoid problems with unknown ssl certificates importing media
This commit is contained in:
parent
0677283b0f
commit
7ff2185651
|
@ -34,7 +34,7 @@ class Media {
|
||||||
|
|
||||||
$http = new \WP_Http();
|
$http = new \WP_Http();
|
||||||
|
|
||||||
$response = $http->request( $url );
|
$response = $http->request( $url, ['sslverify' => false] );
|
||||||
|
|
||||||
if( !is_array($response) || !isset($response['response']) || $response['response']['code'] != 200 ) {
|
if( !is_array($response) || !isset($response['response']) || $response['response']['code'] != 200 ) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue