Changeset 38191 for trunk/src/wp-includes/Requests/Transport/cURL.php
- Timestamp:
- 08/04/2016 07:13:41 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Requests/Transport/cURL.php
r38049 r38191 334 334 curl_setopt($this->handle, CURLOPT_POSTFIELDS, $data); 335 335 break; 336 case Requests::PATCH:337 case Requests::PUT:338 case Requests::DELETE:339 case Requests::OPTIONS:340 curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']);341 curl_setopt($this->handle, CURLOPT_POSTFIELDS, $data);342 break;343 336 case Requests::HEAD: 344 337 curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']); … … 348 341 curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']); 349 342 break; 343 case Requests::PATCH: 344 case Requests::PUT: 345 case Requests::DELETE: 346 case Requests::OPTIONS: 347 default: 348 curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']); 349 if (!empty($data)) { 350 curl_setopt( $this->handle, CURLOPT_POSTFIELDS, $data ); 351 } 350 352 } 351 353
Note: See TracChangeset
for help on using the changeset viewer.