From 3d3322c1d6ec5d9197dd41a36786282741deb111 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 4 May 2010 04:57:22 +0000 Subject: [PATCH] Revert accidental removal of parse_url(). see #9008, props PeteMall. git-svn-id: https://develop.svn.wordpress.org/trunk@14430 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-http.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 8c616f30f8..e1e9cce29e 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -251,7 +251,7 @@ class WP_Http { $r['ssl'] = $arrURL['scheme'] == 'https' || $arrURL['scheme'] == 'ssl'; // Determine if this request is to OUR install of WordPress - $homeURL = home_url(); + $homeURL = parse_url( home_url() ); $r['local'] = $homeURL['host'] == $arrURL['host'] || 'localhost' == $arrURL['host']; unset($homeURL); @@ -1999,4 +1999,4 @@ class WP_Http_Encoding { function is_available() { return ( function_exists('gzuncompress') || function_exists('gzdeflate') || function_exists('gzinflate') ); } -} \ No newline at end of file +}