Changeset 22055
- Timestamp:
- 09/27/2012 10:09:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-http.php
r22047 r22055 170 170 $r['headers']['Accept-Encoding'] = WP_Http_Encoding::accept_encoding(); 171 171 172 if ( strlen($r['body'] ) || 'POST' == $r['method'] || 'PUT' == $r['method'] ) {172 if ( ( ! is_null( $r['body'] ) && '' != $r['body'] ) || 'POST' == $r['method'] || 'PUT' == $r['method'] ) { 173 173 if ( is_array( $r['body'] ) || is_object( $r['body'] ) ) { 174 174 $r['body'] = http_build_query( $r['body'], null, '&' );
Note: See TracChangeset
for help on using the changeset viewer.