Ticket #27264: 27264.diff
File 27264.diff, 1.7 KB (added by , 11 years ago) |
---|
-
src/wp-includes/ms-load.php
394 394 * 395 395 * @access private 396 396 * @since 3.0.0 397 * 398 * @param string $domain The requested domain for the error to reference. 399 * @param string $path The requested path for the error to reference. 397 400 */ 398 function ms_not_installed( ) {399 global $wpdb , $domain, $path;401 function ms_not_installed( $domain, $path ) { 402 global $wpdb; 400 403 401 404 wp_load_translations_early(); 402 405 -
src/wp-includes/ms-settings.php
77 77 $current_site = wp_get_network( $one_network ); 78 78 wp_cache_set( 'current_network', 'site-options' ); 79 79 } elseif ( 0 === $wpdb->num_rows ) { 80 ms_not_installed( );80 ms_not_installed( $domain, $path ); 81 81 } 82 82 } 83 83 if ( empty( $current_site ) ) { … … 85 85 } 86 86 87 87 if ( empty( $current_site ) ) { 88 ms_not_installed( );88 ms_not_installed( $domain, $path ); 89 89 } elseif ( $path === $current_site->path ) { 90 90 $current_blog = get_site_by_path( $domain, $path ); 91 91 } else { … … 110 110 111 111 // If we don't have a network by now, we have a problem. 112 112 if ( empty( $current_site ) ) { 113 ms_not_installed( );113 ms_not_installed( $domain, $path ); 114 114 } 115 115 116 116 // @todo What if the domain of the network doesn't match the current site? … … 154 154 header( 'Location: http://' . $current_site->domain . $current_site->path ); 155 155 exit; 156 156 } 157 ms_not_installed( );157 ms_not_installed( $domain, $path ); 158 158 } 159 159 } 160 160