Ticket #18242: 18242.2.patch
File 18242.2.patch, 862 bytes (added by , 14 years ago) |
---|
-
wp-includes/ms-blogs.php
73 73 if ( is_subdomain_install() ) { 74 74 $url = "http://" . $domain.$path; 75 75 } else { 76 if ( $domain != $_SERVER['HTTP_HOST'] ) { 76 $domain_root = substr( $domain, strpos( $domain, '.' ) + 1 ); 77 $host_root = substr( $_SERVER['HTTP_HOST'], strpos( $_SERVER['HTTP_HOST'], '.' ) + 1 ); 78 79 if ( $domain != $_SERVER['HTTP_HOST'] && $domain_root == $host_root ) { 77 80 $blogname = substr( $domain, 0, strpos( $domain, '.' ) ); 78 $url = 'http://' . substr( $domain, strpos( $domain, '.' ) + 1 ). $path;81 $url = 'http://' . $domain_root . $path; 79 82 // we're not installing the main blog 80 83 if ( $blogname != 'www.' ) 81 84 $url .= $blogname . '/';