From 5edbc3d3c755520f16e79abb67b472c2e97f2d60 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@14430 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 8c616f30f..e1e9cce29 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 +}