First user should have a registration date.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8dd0f6d14b
commit
3e59b760c1
|
@ -159,7 +159,7 @@ $wpdb->query("INSERT INTO $wpdb->comments (comment_post_ID, comment_author, comm
|
|||
|
||||
// Set up admin user
|
||||
$random_password = substr(md5(uniqid(microtime())), 0, 6);
|
||||
$wpdb->query("INSERT INTO $wpdb->users (ID, user_login, user_pass, user_nickname, user_email, user_level, user_idmode) VALUES ( '1', 'admin', MD5('$random_password'), 'Administrator', '$admin_email', '10', 'nickname')");
|
||||
$wpdb->query("INSERT INTO $wpdb->users (ID, user_login, user_pass, user_nickname, user_email, user_level, user_idmode, user_registered) VALUES ( '1', 'admin', MD5('$random_password'), 'Administrator', '$admin_email', '10', 'nickname', NOW() )");
|
||||
|
||||
$from = 'From: '.$_POST['weblog_title'].' <wordpress@'.$_SERVER['SERVER_NAME'].'>';
|
||||
$message_headers = "$from";
|
||||
|
|
Loading…
Reference in New Issue