From ee7c13ee80104a537be9748807e3c0cea8d17833 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 29 Aug 2005 19:12:29 +0000 Subject: [PATCH] Set home during install. Props Owen and Mark. fixes #1506 git-svn-id: http://svn.automattic.com/wordpress/trunk@2817 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/upgrade-schema.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/upgrade-schema.php b/wp-admin/upgrade-schema.php index afd603dd68..e4da454044 100644 --- a/wp-admin/upgrade-schema.php +++ b/wp-admin/upgrade-schema.php @@ -195,7 +195,9 @@ function populate_options() { add_option('blog_charset', 'UTF-8'); add_option('moderation_keys'); add_option('active_plugins'); - add_option('home'); + add_option('home', $guessurl); + // in case it is set, but blank, update "home" + if ( !__get_option('home') ) update_option('home', $guessurl); add_option('category_base'); add_option('ping_sites', 'http://rpc.pingomatic.com/'); add_option('advanced_edit', 0);