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:
ryan 2009-01-05 18:42:02 +00:00
parent 6c528a14cb
commit e634271853

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.