Don't set the site_name cache on every call to get_current_site_name(). Props mark-k, solarissmoke. fixes #16676

git-svn-id: http://svn.automattic.com/wordpress/trunk@18604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-08-25 19:29:47 +00:00
parent 58379895e5
commit 14da950982
1 changed files with 1 additions and 1 deletions

View File

@ -119,8 +119,8 @@ function get_current_site_name( $current_site ) {
$current_site->site_name = $wpdb->get_var( $wpdb->prepare( "SELECT meta_value FROM $wpdb->sitemeta WHERE site_id = %d AND meta_key = 'site_name'", $current_site->id ) );
if ( ! $current_site->site_name )
$current_site->site_name = ucfirst( $current_site->domain );
}
wp_cache_set( $current_site->id . ':site_name', $current_site->site_name, 'site-options' );
}
return $current_site;
}