mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Requests: Update to Requests master (fb5b517) which corrects a logic inversion in the cURL transport checks.
Previously if a host had only disabled one of `curl_init()` or `curl_exec()` it wouldn't get detected correctly by Requests, which caused cURL warnings for users on an affecte dhost. Fixes #37700 for trunk. Built from https://develop.svn.wordpress.org/trunk@38274 git-svn-id: http://core.svn.wordpress.org/trunk@38215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2bd32687b3
commit
1dd3ed4bd5
@ -347,7 +347,7 @@ class Requests_Transport_cURL implements Requests_Transport {
|
|||||||
default:
|
default:
|
||||||
curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']);
|
curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']);
|
||||||
if (!empty($data)) {
|
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.
|
* @return boolean True if the transport is valid, false otherwise.
|
||||||
*/
|
*/
|
||||||
public static function test($capabilities = array()) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user