WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.