get_home_path() fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@2186 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
92c2275795
commit
daef7f8d21
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue