Make WordPress Core


Ignore:
Timestamp:
11/13/2013 03:22:48 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Use get_current_site() instead of the $current_site global when possible.

props jeremyfelt.
fixes #25158.

File:
1 edited

Legend:

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

    r25938 r26120  
    328328 */
    329329function populate_options() {
    330     global $wpdb, $wp_db_version, $current_site, $wp_current_db_version;
     330    global $wpdb, $wp_db_version, $wp_current_db_version;
    331331
    332332    $guessurl = wp_guess_url();
     
    496496    if ( is_multisite() ) {
    497497        /* translators: blog tagline */
    498         $options[ 'blogdescription' ] = sprintf(__('Just another %s site'), $current_site->site_name );
     498        $options[ 'blogdescription' ] = sprintf(__('Just another %s site'), get_current_site()->site_name );
    499499        $options[ 'permalink_structure' ] = '/%year%/%monthnum%/%day%/%postname%/';
    500500    }
Note: See TracChangeset for help on using the changeset viewer.