diff --git a/wp-includes/http.php b/wp-includes/http.php index e8d1344ccd..0e9c87fc55 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -1135,7 +1135,7 @@ class WP_Http_ExtHTTP { $arrURL = parse_url($url); - if ( 'http' != $arrURL['scheme'] || 'https' != $arrURL['scheme'] ) + if ( 'http' != $arrURL['scheme'] && 'https' != $arrURL['scheme'] ) $url = preg_replace('|^' . preg_quote($arrURL['scheme'], '|') . '|', 'http', $url); $is_local = isset($args['local']) && $args['local'];