From 7f27e37e92e6c1cb2dfba0f8146fef1ba62749d2 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 29 Aug 2005 19:12:29 +0000 Subject: [PATCH] Set home during install. Props Owen and Mark. fixes #1506 git-svn-id: https://develop.svn.wordpress.org/trunk@2817 602fd350-edb4-49c9-b593-d223f7449a82 --- 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);