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:
Ryan Boren 2009-01-05 18:42:02 +00:00
parent 60f217cdc4
commit da013965d9
1 changed files with 1 additions and 1 deletions

View File

@ -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.