Ticket #21143: 21143_2.diff
File 21143_2.diff, 949 bytes (added by , 12 years ago) |
---|
-
ms-settings.php
49 49 if ( ! isset( $current_site->blog_id ) ) 50 50 $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 ) ); 51 51 52 $blogname = null; 52 53 if ( is_subdomain_install() ) { 53 54 $current_blog = wp_cache_get( 'current_blog_' . $domain, 'site-options' ); 54 55 if ( !$current_blog ) { … … 80 81 unset($reserved_blognames); 81 82 } 82 83 84 if ( ! defined( 'WP_INSTALLING' ) && ! is_object( $current_blog ) ) { 85 do_action('blog_not_found', $domain, $path, $blogname, $current_site ); 86 } 87 83 88 if ( ! defined( 'WP_INSTALLING' ) && is_subdomain_install() && ! is_object( $current_blog ) ) { 84 89 if ( defined( 'NOBLOGREDIRECT' ) ) { 85 90 $destination = NOBLOGREDIRECT;