WordPress.org

Make WordPress Core

Changeset 38274


Ignore:
Timestamp:
08/18/2016 03:47:55 AM (3 years ago)
Author:
dd32
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 affecte dhost.

Fixes #37700 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/Requests/Transport/cURL.php

    r38191 r38274  
    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.