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/upgrade.php

    r20022 r20023  
    3636 */
    3737function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '' ) {
    38     global $wp_rewrite;
    39 
    4038    if ( !empty( $deprecated ) )
    4139        _deprecated_argument( __FUNCTION__, '2.6' );
     
    8381    wp_install_defaults($user_id);
    8482
    85     $wp_rewrite->flush_rules();
     83    flush_rewrite_rules();
    8684
    8785    wp_new_blog_notification($blog_title, $guessurl, $user_id, ($email_password ? $user_password : __('The password you chose during the install.') ) );
     
    392390 */
    393391function upgrade_all() {
    394     global $wp_current_db_version, $wp_db_version, $wp_rewrite;
     392    global $wp_current_db_version, $wp_db_version;
    395393    $wp_current_db_version = __get_option('db_version');
    396394
Note: See TracChangeset for help on using the changeset viewer.