WordPress.org

Make WordPress Core

Ticket #16568: 16568.2.diff

File 16568.2.diff, 839 bytes (added by wpmuguru, 6 years ago)

16568.diff refreshed for 3.5

  • wp-admin/includes/schema.php

     
    939939                $current_site->domain = $domain;
    940940                $current_site->path = $path;
    941941                $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' ) ) );
    943943                $current_site->blog_id = $blog_id = $wpdb->insert_id;
    944944                update_user_meta( $site_user->ID, 'source_domain', $domain );
    945945                update_user_meta( $site_user->ID, 'primary_blog', $blog_id );