avoid problems with unknown ssl certificates importing media

This commit is contained in:
leogermani 2019-02-06 18:21:18 -02:00
parent 0677283b0f
commit 7ff2185651
1 changed files with 1 additions and 1 deletions

View File

@ -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;