diff --git a/wp-includes/http.php b/wp-includes/http.php index 378eca1e86..075207c6be 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -767,7 +767,7 @@ class WP_Http_Streams { if ( false === $arrURL ) return new WP_Error('http_request_failed', sprintf(__('Malformed URL: %s'), $url)); - if ( 'http' != $arrURL['scheme'] || 'https' != $arrURL['scheme'] ) + if ( 'http' != $arrURL['scheme'] && 'https' != $arrURL['scheme'] ) $url = str_replace($arrURL['scheme'], 'http', $url); // Convert Header array to string.