Changeset 12921 for trunk/wp-includes/ms-settings.php
- Timestamp:
- 02/01/2010 08:26:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-settings.php
r12901 r12921 65 65 $reserved_blognames = array( 'page', 'comments', 'blog', 'wp-admin', 'wp-includes', 'wp-content', 'files', 'feed' ); 66 66 if ( $blogname != '' && ! in_array( $blogname, $reserved_blognames ) && ! is_file( $blogname ) ) 67 $path = $path .$blogname . '/';67 $path .= $blogname . '/'; 68 68 $current_blog = wp_cache_get( 'current_blog_' . $domain . $path, 'site-options' ); 69 69 if ( ! $current_blog ) { … … 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 } … … 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 }
Note: See TracChangeset
for help on using the changeset viewer.