Changes in trunk/wp-includes/ms-blogs.php [17988:17005]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-blogs.php
r17988 r17005 72 72 function get_blogaddress_by_domain( $domain, $path ) { 73 73 if ( is_subdomain_install() ) { 74 $url = "http://" .$domain.$path;74 $url = "http://".$domain.$path; 75 75 } else { 76 76 if ( $domain != $_SERVER['HTTP_HOST'] ) { … … 97 97 function get_id_from_blogname( $name ) { 98 98 global $wpdb, $current_site; 99 $blog_id = wp_cache_get( 'get_id_from_blogname_'. $name, 'blog-details' );99 $blog_id = wp_cache_get( "get_id_from_blogname_" . $name, 'blog-details' ); 100 100 if ( $blog_id ) 101 101 return $blog_id; … … 332 332 global $wpdb; 333 333 334 $key = $blog_id . '-' . $setting . '-blog_option';335 $value = wp_cache_get( $key, 'site-options');334 $key = $blog_id."-".$setting."-blog_option"; 335 $value = wp_cache_get( $key, "site-options" ); 336 336 if ( $value == null ) { 337 337 if ( $blog_id == $wpdb->blogid ) { … … 391 391 add_option( $key, $value ); 392 392 restore_current_blog(); 393 wp_cache_set( $id . '-' . $key . '-blog_option', $value, 'site-options' );393 wp_cache_set( $id."-".$key."-blog_option", $value, 'site-options' ); 394 394 } 395 395 … … 408 408 delete_option( $key ); 409 409 restore_current_blog(); 410 wp_cache_set( $id . '-' . $key . '-blog_option', '', 'site-options' );410 wp_cache_set( $id."-".$key."-blog_option", '', 'site-options' ); 411 411 } 412 412 … … 432 432 refresh_blog_details( $id ); 433 433 434 wp_cache_set( $id . '-' . $key . '-blog_option', $value, 'site-options');434 wp_cache_set( $id."-".$key."-blog_option", $value, 'site-options'); 435 435 } 436 436
Note: See TracChangeset
for help on using the changeset viewer.