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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user