WordPress.org

Make WordPress Core

Changeset 2214


Ignore:
Timestamp:
02/04/2005 11:52:56 PM (16 years ago)
Author:
saxmatt
Message:

First user should have a registration date.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r2133 r2214  
    160160// Set up admin user
    161161$random_password = substr(md5(uniqid(microtime())), 0, 6);
    162 $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')");
     162$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() )");
    163163
    164164$from = 'From: '.$_POST['weblog_title'].' <wordpress@'.$_SERVER['SERVER_NAME'].'>';
Note: See TracChangeset for help on using the changeset viewer.