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";