get_home_path() fixes.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2005-02-01 06:59:44 +00:00
parent 2a8038d93b
commit d883df1424
1 changed files with 2 additions and 2 deletions

View File

@ -847,9 +847,9 @@ function get_home_path() {
$home = get_settings('home');
if ( $home != '' && $home != get_settings('siteurl') ) {
$home_path = parse_url($home);
$home_path = $home_root['path'];
$home_path = $home_path['path'];
$root = str_replace($_SERVER["PHP_SELF"], '', $_SERVER["SCRIPT_FILENAME"]);
$home_path = $root . $home_path . "/";
$home_path = trailingslashit($root . $home_path);
} else {
$home_path = ABSPATH;
}