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
This commit is contained in:
nacin 2010-05-04 04:57:22 +00:00
parent abed02b32d
commit 5edbc3d3c7
1 changed files with 2 additions and 2 deletions

View File

@ -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') );
}
}
}