set registered datestamp to current time during enable network, see #12747

git-svn-id: https://develop.svn.wordpress.org/trunk@14012 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick 2010-04-06 01:41:34 +00:00
parent 4b543dbc76
commit 71d295f69b
1 changed files with 1 additions and 1 deletions

View File

@ -723,7 +723,7 @@ Thanks!
$current_site->site_name = ucfirst( $domain ); $current_site->site_name = ucfirst( $domain );
if ( !is_multisite() ) { if ( !is_multisite() ) {
$wpdb->insert( $wpdb->blogs, array( 'site_id' => $network_id, 'domain' => $domain, 'path' => $path ) ); $wpdb->insert( $wpdb->blogs, array( 'site_id' => $network_id, 'domain' => $domain, 'path' => $path, 'registered' => current_time( 'mysql' ) ) );
$blog_id = $wpdb->insert_id; $blog_id = $wpdb->insert_id;
update_user_meta( $site_user->ID, 'source_domain', $domain ); update_user_meta( $site_user->ID, 'source_domain', $domain );
update_user_meta( $site_user->ID, 'primary_blog', $blog_id ); update_user_meta( $site_user->ID, 'primary_blog', $blog_id );