DB versioning. fixes #1791

git-svn-id: http://svn.automattic.com/wordpress/trunk@2966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2005-10-27 22:04:12 +00:00
parent b8edb9642b
commit 5939e76b0b
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>