Fix logic
git-svn-id: http://svn.automattic.com/wordpress/trunk@15143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bdd183d1eb
commit
b39e28ec1b
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue