Make WordPress Core

Ticket #27264: 27264.diff

File 27264.diff, 1.7 KB (added by jeremyfelt, 11 years ago)
  • src/wp-includes/ms-load.php

     
    394394 *
    395395 * @access private
    396396 * @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.
    397400 */
    398 function ms_not_installed() {
    399         global $wpdb, $domain, $path;
     401function ms_not_installed( $domain, $path ) {
     402        global $wpdb;
    400403
    401404        wp_load_translations_early();
    402405
  • src/wp-includes/ms-settings.php

     
    7777                                $current_site = wp_get_network( $one_network );
    7878                                wp_cache_set( 'current_network', 'site-options' );
    7979                        } elseif ( 0 === $wpdb->num_rows ) {
    80                                 ms_not_installed();
     80                                ms_not_installed( $domain, $path );
    8181                        }
    8282                }
    8383                if ( empty( $current_site ) ) {
     
    8585                }
    8686
    8787                if ( empty( $current_site ) ) {
    88                         ms_not_installed();
     88                        ms_not_installed( $domain, $path );
    8989                } elseif ( $path === $current_site->path ) {
    9090                        $current_blog = get_site_by_path( $domain, $path );
    9191                } else {
     
    110110
    111111        // If we don't have a network by now, we have a problem.
    112112        if ( empty( $current_site ) ) {
    113                 ms_not_installed();
     113                ms_not_installed( $domain, $path );
    114114        }
    115115
    116116        // @todo What if the domain of the network doesn't match the current site?
     
    154154                                header( 'Location: http://' . $current_site->domain . $current_site->path );
    155155                                exit;
    156156                        }
    157                         ms_not_installed();
     157                        ms_not_installed( $domain, $path );
    158158                }
    159159        }
    160160