Fix logic

git-svn-id: https://develop.svn.wordpress.org/trunk@15143 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-06-04 20:11:06 +00:00
parent 628f5ab5fc
commit 92fe0bb5b6
1 changed files with 1 additions and 1 deletions

View File

@ -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'];