diff --git a/wp-includes/Requests/Transport/cURL.php b/wp-includes/Requests/Transport/cURL.php index 453f73b730..7979b2eba0 100644 --- a/wp-includes/Requests/Transport/cURL.php +++ b/wp-includes/Requests/Transport/cURL.php @@ -347,7 +347,7 @@ class Requests_Transport_cURL implements Requests_Transport { default: curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']); if (!empty($data)) { - curl_setopt( $this->handle, CURLOPT_POSTFIELDS, $data ); + curl_setopt($this->handle, CURLOPT_POSTFIELDS, $data); } } @@ -524,7 +524,7 @@ class Requests_Transport_cURL implements Requests_Transport { * @return boolean True if the transport is valid, false otherwise. */ public static function test($capabilities = array()) { - if (!function_exists('curl_init') && !function_exists('curl_exec')) { + if (!function_exists('curl_init') || !function_exists('curl_exec')) { return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 39bd655124..2529ba7a38 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38273'; +$wp_version = '4.7-alpha-38274'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.