diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 173566d464..e9ff205142 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -315,8 +315,7 @@ class WP_Http { } if ( empty( $r['redirection'] ) ) { $options['follow_redirects'] = false; - } - else { + } else { $options['redirects'] = $r['redirection']; } @@ -333,11 +332,15 @@ class WP_Http { // SSL certificate handling if ( ! $r['sslverify'] ) { $options['verify'] = false; - } - else { + } else { $options['verify'] = $r['sslcertificates']; } + // All non-GET/HEAD requests should put the arguments in the form body. + if ( 'HEAD' !== $type && 'GET' !== $type ) { + $options['data_format'] = 'body'; + } + /** * Filters whether SSL should be verified for non-local requests. * diff --git a/wp-includes/version.php b/wp-includes/version.php index fc9b7d1d7f..a187c70f8f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-beta4-38164'; +$wp_version = '4.6-beta4-38165'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.