mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
Use get_current_site() instead of the $current_site global when possible.
props jeremyfelt. fixes #25158. git-svn-id: https://develop.svn.wordpress.org/trunk@26120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -327,7 +327,7 @@ $wp_queries = wp_get_db_schema( 'all' );
|
||||
* @uses $wp_db_version
|
||||
*/
|
||||
function populate_options() {
|
||||
global $wpdb, $wp_db_version, $current_site, $wp_current_db_version;
|
||||
global $wpdb, $wp_db_version, $wp_current_db_version;
|
||||
|
||||
$guessurl = wp_guess_url();
|
||||
/**
|
||||
@@ -495,7 +495,7 @@ function populate_options() {
|
||||
// 3.0 multisite
|
||||
if ( is_multisite() ) {
|
||||
/* translators: blog tagline */
|
||||
$options[ 'blogdescription' ] = sprintf(__('Just another %s site'), $current_site->site_name );
|
||||
$options[ 'blogdescription' ] = sprintf(__('Just another %s site'), get_current_site()->site_name );
|
||||
$options[ 'permalink_structure' ] = '/%year%/%monthnum%/%day%/%postname%/';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user