DB versioning. fixes #1791

git-svn-id: https://develop.svn.wordpress.org/trunk@2966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-10-27 22:04:12 +00:00
parent 6b31c735f4
commit 305c29d4e1
4 changed files with 47 additions and 18 deletions

View File

@@ -138,6 +138,7 @@ flush();
// Set everything up
make_db_current_silent();
populate_options();
populate_roles();
$wpdb->query("UPDATE $wpdb->options SET option_value = '$weblog_title' WHERE option_name = 'blogname'");
$wpdb->query("UPDATE $wpdb->options SET option_value = '$admin_email' WHERE option_name = 'admin_email'");
@@ -196,7 +197,6 @@ http://wordpress.org/
@wp_mail($admin_email, __('New WordPress Blog'), $message, $message_headers);
upgrade_all();
?>
<p><em><?php _e('Finished!'); ?></em></p>