Changeset 38274 for trunk/src/wp-includes/Requests/Transport/cURL.php
- Timestamp:
- 08/18/2016 03:47:55 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Requests/Transport/cURL.php
r38191 r38274 348 348 curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']); 349 349 if (!empty($data)) { 350 curl_setopt( $this->handle, CURLOPT_POSTFIELDS, $data);350 curl_setopt($this->handle, CURLOPT_POSTFIELDS, $data); 351 351 } 352 352 } … … 525 525 */ 526 526 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')) { 528 528 return false; 529 529 }
Note: See TracChangeset
for help on using the changeset viewer.