From 8820dc2c4c62d8da8415d577d82966acf368e2af Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Thu, 16 Jun 2005 09:05:06 +0000 Subject: [PATCH] Add a default About page on install. git-svn-id: https://develop.svn.wordpress.org/trunk@2645 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/install.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-admin/install.php b/wp-admin/install.php index f106378021..40505a058a 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -166,6 +166,10 @@ $wpdb->query( "INSERT INTO $wpdb->post2cat (`rel_id`, `post_id`, `category_id`) // Default comment $wpdb->query("INSERT INTO $wpdb->comments (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_date, comment_date_gmt, comment_content) VALUES ('1', '".addslashes(__('Mr WordPress'))."', '', 'http://wordpress.org', '$now', '$now_gmt', '".addslashes(__('Hi, this is a comment.
To delete a comment, just log in, and view the posts\' comments, there you will have the option to edit or delete them.'))."')"); +// First Page + +$wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_category, post_name, post_modified, post_modified_gmt) VALUES ('1', '$now', '$now_gmt', '".addslashes(__('This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.'))."', '".addslashes(__('About'))."', '0', '".addslashes(__('about'))."', '$now', '$now_gmt')"); + // Set up admin user $random_password = substr(md5(uniqid(microtime())), 0, 6); $wpdb->query("INSERT INTO $wpdb->users (ID, user_login, user_pass, user_email, user_level, user_registered) VALUES ( '1', 'admin', MD5('$random_password'), '$admin_email', '10', NOW() )");