And instead of or. Props mercurix. fixes #8787 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10309 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
60f217cdc4
commit
da013965d9
|
@ -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