WordPress.org

Make WordPress Core

Changeset 20183


Ignore:
Timestamp:
03/15/2012 05:33:38 AM (6 years ago)
Author:
dd32
Message:

WP_HTTP: Send the body with custom method requests when using cURL. Fixes #18589

File:
1 edited

Legend:

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

    r19696 r20183  
    10551055            default:
    10561056                curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, $r['method'] );
     1057                if ( ! empty( $r['body'] ) )
     1058                    curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] );
    10571059                break;
    10581060        }
Note: See TracChangeset for help on using the changeset viewer.