Ticket #18727: wordpress-curl-http-custom-method-fix.patch
File wordpress-curl-http-custom-method-fix.patch, 522 bytes (added by , 14 years ago) |
---|
-
wp-includes/class-http.php
diff -rupN old/wp-includes/class-http.php new/wp-includes/class-http.php
old new class WP_Http_Curl { 1055 1055 curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'PUT' ); 1056 1056 curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); 1057 1057 break; 1058 default: 1059 curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, $r['method'] ); 1060 break; 1058 1061 } 1059 1062 1060 1063 if ( true === $r['blocking'] )