Make WordPress Core

Changeset 38338


Ignore:
Timestamp:
08/23/2016 03:54:06 PM (8 years ago)
Author:
swissspidy
Message:

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 affected host.

Merge of [38274] to the 4.6 branch.

Fixes #37700.

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

  • branches/4.6/src/wp-includes/Requests/Transport/cURL.php

    r38192 r38338  
    348348                curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']);
    349349                if (!empty($data)) {
    350                     curl_setopt( $this->handle, CURLOPT_POSTFIELDS, $data );
     350                    curl_setopt($this->handle, CURLOPT_POSTFIELDS, $data);
    351351                }
    352352        }
     
    525525     */
    526526    public static function test($capabilities = array()) {
    527         if (!function_exists('curl_init') && !function_exists('curl_exec')) {
     527        if (!function_exists('curl_init') || !function_exists('curl_exec')) {
    528528            return false;
    529529        }
Note: See TracChangeset for help on using the changeset viewer.