get_home_path() fixes.

git-svn-id: https://develop.svn.wordpress.org/trunk@2186 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-02-01 06:59:44 +00:00
parent 92c2275795
commit daef7f8d21
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;
}