Make WordPress Core

Ticket #16328: ms-settings.diff

File ms-settings.diff, 859 bytes (added by macbis, 14 years ago)
  • wp-includes/ms-settings.php

    commit 84106482dbe96cac84fb8e11ed41f5307f03c2da
    Author: Beau Beveridge <bbeveridge@2co.com>
    Date:   Thu Apr 7 15:43:35 2011 -0400
    
        quick fix (core edit)
    
    diff --git a/wp-includes/ms-settings.php b/wp-includes/ms-settings.php
    index 9022313..eaf90b7 100644
    a b if ( !isset( $current_site ) || !isset( $current_blog ) ) { 
    9898        if ( ! defined( 'WP_INSTALLING' ) ) {
    9999                if ( $current_site && ! $current_blog ) {
    100100                        if ( $current_site->domain != $_SERVER[ 'HTTP_HOST' ] ) {
    101                                 header( 'Location: http://' . $current_site->domain . $current_site->path );
     101                                header( 'Location: http://' . $current_site->domain . $_SERVER['REQUEST_URI'] );
    102102                                exit;
    103103                        }
    104104                        $current_blog = get_blog_details( array( 'domain' => $current_site->domain, 'path' => $current_site->path ), false );