Make WordPress Core

Ticket #10855: 10855.diff

File 10855.diff, 727 bytes (added by mdawaffe, 16 years ago)
  • wp-includes/http.php

     
    11211121                        case 'HEAD':
    11221122                                $r['method'] = HTTP_METH_HEAD;
    11231123                                break;
     1124                        case 'PUT':
     1125                                $r['method'] =  HTTP_METH_PUT;
     1126                                break;
    11241127                        case 'GET':
    11251128                        default:
    11261129                                $r['method'] = HTTP_METH_GET;
     
    13061309                                curl_setopt( $handle, CURLOPT_POST, true );
    13071310                                curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] );
    13081311                                break;
     1312                        case 'PUT':
     1313                                curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'PUT' );
     1314                                curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] );
     1315                                break;
    13091316                }
    13101317
    13111318                if ( true === $r['blocking'] )