Make WordPress Core

Ticket #13452: use http_build_query in WP_Http.diff

File use http_build_query in WP_Http.diff, 903 bytes (added by simonwheatley, 14 years ago)
  • Users/simon/Projects/WordPress-Bleeding/site/wp-includes/class-http.php

     
    292292                        $transports = WP_Http::_getTransport($r);
    293293                } else {
    294294                        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, '&');
    299296                                $r['headers']['Content-Type'] = 'application/x-www-form-urlencoded; charset=' . get_option('blog_charset');
    300297                                $r['headers']['Content-Length'] = strlen($r['body']);
    301298                        }