Changeset 13254
- Timestamp:
- 02/20/2010 02:07:23 PM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
-
ms-load.php (modified) (1 diff)
-
ms-settings.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-load.php
r13253 r13254 181 181 * Used when blog does not exist. Checks for a missing $wpdb->site table as well. 182 182 * 183 * @todo Merge with is_blog_installed(), dead_db(), wp_not_installed(), etc.184 183 * @access private 185 184 * @since 3.0.0 -
trunk/wp-includes/ms-settings.php
r13253 r13254 49 49 $current_blog = wp_cache_get( 'current_blog_' . $domain, 'site-options' ); 50 50 if ( !$current_blog ) { 51 $current_blog = get_blog_details( array( 'domain' => $domain), false );51 $current_blog = get_blog_details( array( 'domain' => $domain ), false ); 52 52 if ( $current_blog ) 53 53 wp_cache_set( 'current_blog_' . $domain, $current_blog, 'site-options' ); … … 68 68 $current_blog = wp_cache_get( 'current_blog_' . $domain . $path, 'site-options' ); 69 69 if ( ! $current_blog ) { 70 $current_blog = $current_blog = get_blog_details( array('domain' => $domain, 'path' => $path ), false );70 $current_blog = get_blog_details( array( 'domain' => $domain, 'path' => $path ), false ); 71 71 if ( $current_blog ) 72 72 wp_cache_set( 'current_blog_' . $domain . $path, $current_blog, 'site-options' ); … … 92 92 exit; 93 93 } 94 $current_blog = get_blog_details( array( 'domain' => $current_site->domain, 'path' => $current_site->path), false );94 $current_blog = get_blog_details( array( 'domain' => $current_site->domain, 'path' => $current_site->path ), false ); 95 95 } 96 96 if ( ! $current_blog || ! $current_site ) … … 108 108 109 109 if ( ! $blog_id ) { 110 if ( defined( 'WP_INSTALLING') ) {110 if ( defined( 'WP_INSTALLING' ) ) { 111 111 $current_blog->blog_id = $blog_id = 1; 112 112 } else { 113 $msg = ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ? __( 'Database tables are missing.' ) : '';113 $msg = ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ? ' ' . __( 'Database tables are missing.' ) : ''; 114 114 wp_die( __( 'No blog by that name on this system.' ) . $msg ); 115 115 } … … 125 125 126 126 // Define upload directory constants 127 ms_upload_constants( );127 ms_upload_constants(); 128 128 129 129 ?>
Note: See TracChangeset
for help on using the changeset viewer.