diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 914aa213f4..5a3075846c 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -363,6 +363,9 @@ class WP_Http { } } + // Avoid issues where mbstring.func_overload is enabled + mbstring_binary_safe_encoding(); + try { $requests_response = Requests::request( $url, $headers, $data, $type, $options ); @@ -377,6 +380,8 @@ class WP_Http { $response = new WP_Error( 'http_request_failed', $e->getMessage() ); } + reset_mbstring_encoding(); + /** * Fires after an HTTP API response is received and before the response is returned. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 65694c6f9a..d6aa295af2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6.2-alpha-38728'; +$wp_version = '4.6.2-alpha-38895'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.