Skip to content

Commit 91af7b5

Browse files
Fix array to string conversion.
1 parent 4d69f0f commit 91af7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public function call( $method, array $data = array() ) {
358358
);
359359

360360
// disable ssl certificate verification for old versions of php-curl & all other http transports
361-
if( ! function_exists( 'curl_version' ) || version_compare( curl_version(), '7.20', '<' ) ) {
361+
if( ! function_exists( 'curl_version' ) || ( ( $curl_version = curl_version() ) && version_compare( $curl_version['version'], '7.20', '<' ) ) ) {
362362
$request_args['sslverify'] = false;
363363
}
364364

0 commit comments

Comments
 (0)