mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
Fix logic
git-svn-id: http://svn.automattic.com/wordpress/branches/2.9@15144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ea39c30737
commit
d55565eba9
@ -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'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user