From d9b39736ba5f18dc7455f70f9f76eb329464a28f Mon Sep 17 00:00:00 2001 From: Mark Jaquith 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: https://develop.svn.wordpress.org/trunk@9516 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/rewrite.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 8fa51a5f13..f4623cc297 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";