From 54c602edee0c25dce4ef2f8191d75f22d545706f Mon Sep 17 00:00:00 2001 From: markjaquith Date: Tue, 4 Nov 2008 21:58:30 +0000 Subject: [PATCH] Always set home_root in the rewrite rules. Dreamhost does not set the path for some reason. Props Joe Taiabjee git-svn-id: http://svn.automattic.com/wordpress/trunk@9516 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rewrite.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 8fa51a5f1..f4623cc29 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -1633,6 +1633,8 @@ class WP_Rewrite { $home_root = parse_url(get_option('home')); if ( isset( $home_root['path'] ) ) { $home_root = trailingslashit($home_root['path']); + } else { + $home_root = '/'; } $rules = "\n";