From da013965d97e7a7a501099519f137de2e28da349 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 5 Jan 2009 18:42:02 +0000 Subject: [PATCH] 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 --- wp-includes/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index 378eca1e86..075207c6be 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -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.