Ticket #14873: 14873.diff
| File 14873.diff, 1.4 KB (added by , 15 years ago) |
|---|
-
ms-settings.php
80 80 } 81 81 } 82 82 83 $protocol = is_ssl() ? 'https://' : 'http://'; 84 83 85 if ( ! defined( 'WP_INSTALLING' ) && is_subdomain_install() && ! is_object( $current_blog ) ) { 84 86 if ( defined( 'NOBLOGREDIRECT' ) ) { 85 87 $destination = NOBLOGREDIRECT; 86 88 if ( '%siteurl%' == $destination ) 87 $destination = "http://". $current_site->domain . $current_site->path;89 $destination = $protocol . $current_site->domain . $current_site->path; 88 90 } else { 89 $destination = 'http://'. $current_site->domain . $current_site->path . 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );91 $destination = $protocol . $current_site->domain . $current_site->path . 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain ); 90 92 } 91 93 header( 'Location: ' . $destination ); 92 94 die(); … … 95 97 if ( ! defined( 'WP_INSTALLING' ) ) { 96 98 if ( $current_site && ! $current_blog ) { 97 99 if ( $current_site->domain != $_SERVER[ 'HTTP_HOST' ] ) { 98 header( 'Location: http://'. $current_site->domain . $current_site->path );100 header( 'Location: ' . $protocol . $current_site->domain . $current_site->path ); 99 101 exit; 100 102 } 101 103 $current_blog = get_blog_details( array( 'domain' => $current_site->domain, 'path' => $current_site->path ), false );