mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
@@ -597,7 +597,7 @@ function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') {
|
||||
|
||||
// Check if the domain/path has been used already.
|
||||
if ( is_subdomain_install() ) {
|
||||
$mydomain = "$blogname.$domain";
|
||||
$mydomain = $blogname . '.' . preg_replace( '|^www\.|', '', $domain );
|
||||
$path = $base;
|
||||
} else {
|
||||
$mydomain = "$domain";
|
||||
|
||||
Reference in New Issue
Block a user