mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Save user registration time. Props mdawaffe. fixes #5300
git-svn-id: https://develop.svn.wordpress.org/trunk@6302 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dbad2a3943
commit
ad52441c6b
@ -97,7 +97,7 @@ function wp_insert_user($userdata) {
|
||||
if ( empty($user_registered) )
|
||||
$user_registered = gmdate('Y-m-d H:i:s');
|
||||
|
||||
$data = compact( 'user_pass', 'user_email', 'user_url', 'user_nicename', 'display_name' );
|
||||
$data = compact( 'user_pass', 'user_email', 'user_url', 'user_nicename', 'display_name', 'user_registered' );
|
||||
|
||||
if ( $update ) {
|
||||
$wpdb->update( $wpdb->users, $data, compact( 'ID' ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user