mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
get_home_path() fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2a8038d93b
commit
d883df1424
@ -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
Block a user