WordPress.org

Make WordPress Core

Ticket #11644: 11644.11.diff

File 11644.11.diff, 953 bytes (added by nacin, 8 years ago)

Reverting wp_redirect()

  • wp-includes/ms-settings.php

     
    8181        } else {
    8282                $destination = 'http://' . $current_site->domain . $current_site->path . 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
    8383        }
    84         wp_redirect( $destination );
     84        header( 'Location: ' . $destination );
    8585        die();
    8686}
    8787
    8888if ( ! defined( 'WP_INSTALLING' ) ) {
    8989        if ( $current_site && ! $current_blog ) {
    9090                if ( $current_site->domain != $_SERVER[ 'HTTP_HOST' ] ) {
    91                         wp_redirect( 'http://' . $current_site->domain . $current_site->path );
     91                        header( 'Location: http://' . $current_site->domain . $current_site->path );
    9292                        exit;
    9393                }
    9494                $current_blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain = %s AND path = %s", $current_site->domain, $current_site->path ) );