mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
And instead of or. Props mercurix. fixes #8787 for 2.7
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2449b17eb
commit
0bcd364623
@ -745,7 +745,7 @@ class WP_Http_Streams {
|
||||
if ( false === $arrURL )
|
||||
return new WP_Error('http_request_failed', sprintf(__('Malformed URL: %s'), $url));
|
||||
|
||||
if ( 'http' != $arrURL['scheme'] || 'https' != $arrURL['scheme'] )
|
||||
if ( 'http' != $arrURL['scheme'] && 'https' != $arrURL['scheme'] )
|
||||
$url = str_replace($arrURL['scheme'], 'http', $url);
|
||||
|
||||
// Convert Header array to string.
|
||||
|
Loading…
Reference in New Issue
Block a user