Make WordPress Core


Ignore:
Timestamp:
02/01/2010 08:26:08 PM (15 years ago)
Author:
wpmuguru
Message:

reorganize code on ms startup. props nacin, see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-settings.php

    r12901 r12921  
    6565    $reserved_blognames = array( 'page', 'comments', 'blog', 'wp-admin', 'wp-includes', 'wp-content', 'files', 'feed' );
    6666    if ( $blogname != '' && ! in_array( $blogname, $reserved_blognames ) && ! is_file( $blogname ) )
    67         $path = $path . $blogname . '/';
     67        $path .= $blogname . '/';
    6868    $current_blog = wp_cache_get( 'current_blog_' . $domain . $path, 'site-options' );
    6969    if ( ! $current_blog ) {
     
    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}
     
    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        }
Note: See TracChangeset for help on using the changeset viewer.