WordPress.org

Make WordPress Core

Changeset 16450


Ignore:
Timestamp:
11/18/10 03:34:28 (3 years ago)
Author:
nacin
Message:

WP_Http_ExtHTTP variable fix. Don't pass an empty array to http_request, props mdawaffe, fixes #13730.

File:
1 edited

Legend:

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

    r15911 r16450  
    281281 
    282282        if ( empty($r['body']) ) { 
     283            $r['body'] = null; 
    283284            // Some servers fail when sending content without the content-length header being set. 
    284285            // Also, to fix another bug, we only send when doing POST and PUT and the content-length 
Note: See TracChangeset for help on using the changeset viewer.