]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/Requests/Transport/cURL.php
WordPress 4.6.1
[autoinstalls/wordpress.git] / wp-includes / Requests / Transport / cURL.php
index 453f73b7300bdb150c635b8b1156522066c22c20..7979b2eba0430f121a0e6e71d50a5c9ad73a5c10 100644 (file)
@@ -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;
                }