From 81669e4652d93c3d68fd424e436e6a48e0f01b37 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 6 Nov 2005 03:16:59 +0000 Subject: [PATCH] Admin nicename setup incorrectly. Props Mark Jaquith fixes #1839 git-svn-id: http://svn.automattic.com/wordpress/trunk@2992 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index dd7380e8f6..8b53756525 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -174,7 +174,7 @@ $wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, p $random_password = substr(md5(uniqid(microtime())), 0, 6); $display_name_array = explode('@', $admin_email); $display_name = $display_name_array[0]; -$wpdb->query("INSERT INTO $wpdb->users (ID, user_login, user_pass, user_email, user_registered, display_name, user_nicename) VALUES ( '1', 'admin', MD5('$random_password'), '$admin_email', NOW(), '$display_name', '$display_name')"); +$wpdb->query("INSERT INTO $wpdb->users (ID, user_login, user_pass, user_email, user_registered, display_name, user_nicename) VALUES ( '1', 'admin', MD5('$random_password'), '$admin_email', NOW(), '$display_name', 'admin')"); $wpdb->query("INSERT INTO $wpdb->usermeta (user_id, meta_key, meta_value) VALUES ({$wpdb->insert_id}, '{$table_prefix}user_level', '10');"); $admin_caps = serialize(array('administrator' => true)); $wpdb->query("INSERT INTO $wpdb->usermeta (user_id, meta_key, meta_value) VALUES ({$wpdb->insert_id}, '{$table_prefix}capabilities', '{$admin_caps}');");