WordPress.org

Make WordPress Core

Ticket #16676: 16676.diff

File 16676.diff, 709 bytes (added by solarissmoke, 4 years ago)
  • wp-includes/ms-load.php

     
    119119                $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 ) ); 
    120120                if ( ! $current_site->site_name ) 
    121121                        $current_site->site_name = ucfirst( $current_site->domain ); 
     122                wp_cache_set( $current_site->id . ':site_name', $current_site->site_name, 'site-options' ); 
    122123        } 
    123         wp_cache_set( $current_site->id . ':site_name', $current_site->site_name, 'site-options' ); 
    124124 
    125125        return $current_site; 
    126126}