And instead of or. Props mercurix. fixes #8787 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6c528a14cb
commit
e634271853
|
@ -767,7 +767,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