Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008

git-svn-id: https://develop.svn.wordpress.org/trunk@12598 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-04 17:23:29 +00:00
parent 9ef2cb198f
commit 974b6c1ce4
17 changed files with 75 additions and 51 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ class WP {
$req_uri_array = explode('?', $req_uri);
$req_uri = $req_uri_array[0];
$self = $_SERVER['PHP_SELF'];
$home_path = parse_url(get_option('home'));
$home_path = parse_url(home_url());
if ( isset($home_path['path']) )
$home_path = $home_path['path'];
else