scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WordPress 4.6.1
[autoinstalls/wordpress.git]
/
wp-includes
/
Requests
/
Transport
/
cURL.php
diff --git
a/wp-includes/Requests/Transport/cURL.php
b/wp-includes/Requests/Transport/cURL.php
index 453f73b7300bdb150c635b8b1156522066c22c20..7979b2eba0430f121a0e6e71d50a5c9ad73a5c10 100644
(file)
--- 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)) {
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()) {
* @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;
}
return false;
}