Make WordPress Core

Changeset 25038


Ignore:
Timestamp:
08/16/2013 08:07:05 PM (11 years ago)
Author:
nacin
Message:

In populate_network(), insert the first site as blog_id 1, overriding any auto-increment DB seed. props wpmuguru, fixes #16568.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/schema.php

    r24614 r25038  
    937937        $current_site->path = $path;
    938938        $current_site->site_name = ucfirst( $domain );
    939         $wpdb->insert( $wpdb->blogs, array( 'site_id' => $network_id, 'domain' => $domain, 'path' => $path, 'registered' => current_time( 'mysql' ) ) );
     939        $wpdb->insert( $wpdb->blogs, array( 'site_id' => $network_id, 'blog_id' => 1, 'domain' => $domain, 'path' => $path, 'registered' => current_time( 'mysql' ) ) );
    940940        $current_site->blog_id = $blog_id = $wpdb->insert_id;
    941941        update_user_meta( $site_user->ID, 'source_domain', $domain );
Note: See TracChangeset for help on using the changeset viewer.