From d55565eba94e9e520157c543529f23914ed984fe Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 4 Jun 2010 20:12:12 +0000 Subject: [PATCH] Fix logic git-svn-id: http://svn.automattic.com/wordpress/branches/2.9@15144 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'];