Changeset 15551
- Timestamp:
- 08/31/2010 06:17:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-load.php
r15333 r15551 88 88 function get_current_site_name( $current_site ) { 89 89 global $wpdb; 90 $current_site->site_name = wp_cache_get( $current_site->id . ':current_site_name', 'site-options' ); 90 91 $current_site->site_name = wp_cache_get( $current_site->id . ':site_name', 'site-options' ); 91 92 if ( ! $current_site->site_name ) { 92 $current_site->site_name = wp_cache_get( $current_site->id . ':site_name', 'site-options' ); 93 if ( ! $current_site->site_name ) { 94 $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 ) ); 95 if ( ! $current_site->site_name ) 96 $current_site->site_name = ucfirst( $current_site->domain ); 97 } 98 wp_cache_set( $current_site->id . ':current_site_name', $current_site->site_name, 'site-options' ); 99 } 93 $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 ) ); 94 if ( ! $current_site->site_name ) 95 $current_site->site_name = ucfirst( $current_site->domain ); 96 } 97 wp_cache_set( $current_site->id . ':site_name', $current_site->site_name, 'site-options' ); 98 100 99 return $current_site; 101 100 }
Note: See TracChangeset
for help on using the changeset viewer.