Ticket #13452: use http_build_query in WP_Http.diff
File use http_build_query in WP_Http.diff, 903 bytes (added by , 14 years ago) |
---|
-
Users/simon/Projects/WordPress-Bleeding/site/wp-includes/class-http.php
292 292 $transports = WP_Http::_getTransport($r); 293 293 } else { 294 294 if ( is_array( $r['body'] ) || is_object( $r['body'] ) ) { 295 if ( ! version_compare(phpversion(), '5.1.2', '>=') ) 296 $r['body'] = _http_build_query($r['body'], null, '&'); 297 else 298 $r['body'] = http_build_query($r['body'], null, '&'); 295 $r['body'] = http_build_query($r['body'], null, '&'); 299 296 $r['headers']['Content-Type'] = 'application/x-www-form-urlencoded; charset=' . get_option('blog_charset'); 300 297 $r['headers']['Content-Length'] = strlen($r['body']); 301 298 }