Changes in trunk/wp-includes/ms-settings.php [14452:16633]
- File:
-
- 1 edited
-
trunk/wp-includes/ms-settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-settings.php
r14452 r16633 60 60 wp_cache_set( 'current_blog_' . $domain, $current_blog, 'site-options' ); 61 61 } 62 if ( $current_blog && $current_blog->site_id != $current_site->id ) 62 if ( $current_blog && $current_blog->site_id != $current_site->id ) { 63 63 $current_site = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->site WHERE id = %d", $current_blog->site_id ) ); 64 else 64 if ( ! isset( $current_site->blog_id ) ) 65 $current_site->blog_id = $wpdb->get_var( $wpdb->prepare( "SELECT blog_id FROM $wpdb->blogs WHERE domain = %s AND path = %s", $current_site->domain, $current_site->path ) ); 66 } else 65 67 $blogname = substr( $domain, 0, strpos( $domain, '.' ) ); 66 68 } else { … … 79 81 wp_cache_set( 'current_blog_' . $domain . $path, $current_blog, 'site-options' ); 80 82 } 83 unset($reserved_blognames); 81 84 } 82 85
Note: See TracChangeset
for help on using the changeset viewer.