diff --git a/wp-includes/http.php b/wp-includes/http.php index d447c93dd6..098f33499d 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -196,7 +196,7 @@ class WP_Http { $headers['user-agent'] = $r['user-agent']; if ( is_null($body) ) { - if ( ! is_string($body) ) + if ( is_array($body) || is_object($body) ) $body = http_build_query($body); $transports = WP_Http::_getTransport();