Make WordPress Core

Ticket #20174: 20174.diff

File 20174.diff, 1002 bytes (added by duck_, 12 years ago)
  • wp-admin/includes/schema.php

     
    819819 *      so the error code must be checked) or failure.
    820820 */
    821821function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false ) {
    822         global $wpdb, $current_site, $wp_db_version;
     822        global $wpdb, $current_site, $wp_db_version, $wp_rewrite;
    823823
    824824        $errors = new WP_Error();
    825825        if ( '' == $domain )
     
    936936        }
    937937
    938938        if ( $subdomain_install )
    939                 update_option( 'permalink_structure', '/%year%/%monthnum%/%day%/%postname%/');
     939                $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
    940940        else
    941                 update_option( 'permalink_structure', '/blog/%year%/%monthnum%/%day%/%postname%/');
     941                $wp_rewrite->set_permalink_structure( '/blog/%year%/%monthnum%/%day%/%postname%/' );
    942942
    943943        flush_rewrite_rules();
    944944