mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
strip www before adding subdomain when creating new site
git-svn-id: https://develop.svn.wordpress.org/trunk@15050 602fd350-edb4-49c9-b593-d223f7449a82
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