Ticket #16568: 16568.2.diff
File 16568.2.diff, 839 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/schema.php
939 939 $current_site->domain = $domain; 940 940 $current_site->path = $path; 941 941 $current_site->site_name = ucfirst( $domain ); 942 $wpdb->insert( $wpdb->blogs, array( 'site_id' => $network_id, ' domain' => $domain, 'path' => $path, 'registered' => current_time( 'mysql' ) ) );942 $wpdb->insert( $wpdb->blogs, array( 'site_id' => $network_id, 'blog_id' => 1, 'domain' => $domain, 'path' => $path, 'registered' => current_time( 'mysql' ) ) ); 943 943 $current_site->blog_id = $blog_id = $wpdb->insert_id; 944 944 update_user_meta( $site_user->ID, 'source_domain', $domain ); 945 945 update_user_meta( $site_user->ID, 'primary_blog', $blog_id );