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 +}