diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 9d5fca0eab..2fd4c54ea6 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -362,6 +362,9 @@ class WP_Http { } } + // Work around a bug in Requests when the path starts with // See https://github.com/rmccue/Requests/issues/231 + $url = preg_replace( '!^(\w+://[^/]+)//(.*)$!i', '$1/$2', $url ); + try { $requests_response = Requests::request( $url, $headers, $data, $type, $options ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8e5c8b6676..f13c61365f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38428'; +$wp_version = '4.7-alpha-38429'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.