WordPress.org

Make WordPress Core

Changeset 19696


Ignore:
Timestamp:
01/06/12 12:53:44 (2 years ago)
Author:
dd32
Message:

Support custom HTTP Methods in WP_Http_Curl. Brings it in line with the other HTTP transports of respecting the requested method. Props zx2c4. Fixes #18589

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r19687 r19696  
    10521052                curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'PUT' ); 
    10531053                curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); 
     1054                break; 
     1055            default: 
     1056                curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, $r['method'] ); 
    10541057                break; 
    10551058        } 
Note: See TracChangeset for help on using the changeset viewer.