Ticket #11644: 11644.11.diff
| File 11644.11.diff, 953 bytes (added by , 16 years ago) |
|---|
-
wp-includes/ms-settings.php
81 81 } else { 82 82 $destination = 'http://' . $current_site->domain . $current_site->path . 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain ); 83 83 } 84 wp_redirect($destination );84 header( 'Location: ' . $destination ); 85 85 die(); 86 86 } 87 87 88 88 if ( ! defined( 'WP_INSTALLING' ) ) { 89 89 if ( $current_site && ! $current_blog ) { 90 90 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 ); 92 92 exit; 93 93 } 94 94 $current_blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain = %s AND path = %s", $current_site->domain, $current_site->path ) );