Make WordPress Core


Ignore:
Timestamp:
02/28/2012 08:29:33 PM (13 years ago)
Author:
duck_
Message:

Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546.

File:
1 edited

Legend:

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

    r19863 r20023  
    822822 */
    823823function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false ) {
    824     global $wpdb, $current_site, $wp_db_version, $wp_rewrite;
     824    global $wpdb, $current_site, $wp_db_version;
    825825
    826826    $errors = new WP_Error();
     
    943943        update_option( 'permalink_structure', '/blog/%year%/%monthnum%/%day%/%postname%/');
    944944
    945     $wp_rewrite->flush_rules();
     945    flush_rewrite_rules();
    946946
    947947    if ( $subdomain_install ) {
Note: See TracChangeset for help on using the changeset viewer.