diff --git src/wp-includes/ms-load.php src/wp-includes/ms-load.php
index 868c141..1dd0880 100644
|
|
|
function get_current_site_name( $current_site ) { |
| 125 | 125 | $current_site->site_name = wp_cache_get( $current_site->id . ':site_name', 'site-options' ); |
| 126 | 126 | if ( ! $current_site->site_name ) { |
| 127 | 127 | $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 ) ); |
| 128 | | if ( ! $current_site->site_name ) |
| | 128 | if ( ! $current_site->site_name ) { |
| 129 | 129 | $current_site->site_name = ucfirst( $current_site->domain ); |
| 130 | | wp_cache_set( $current_site->id . ':site_name', $current_site->site_name, 'site-options' ); |
| | 130 | } else { |
| | 131 | wp_cache_set( $current_site->id . ':site_name', $current_site->site_name, 'site-options' ); |
| | 132 | } |
| 131 | 133 | } |
| 132 | 134 | |
| 133 | 135 | return $current_site; |