strip www before adding subdomain when creating new site

git-svn-id: http://svn.automattic.com/wordpress/trunk@15050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru
2010-05-29 00:32:10 +00:00
parent 35d800986f
commit 1c6f95023b
4 changed files with 6 additions and 6 deletions

View File

@@ -167,7 +167,7 @@ switch ( $_GET['action'] ) {
wp_die( __( 'Invalid email address.' ) );
if ( is_subdomain_install() ) {
$newdomain = $domain . '.' . $current_site->domain;
$newdomain = $domain . '.' . preg_replace( '|^www\.|', '', $current_site->domain );
$path = $base;
} else {
$newdomain = $current_site->domain;