diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index fe2620673..d913d6dbb 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -1171,7 +1171,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'];