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:
Ron Rennick
2010-05-29 00:32:10 +00:00
parent 51cc204001
commit bd7ccea9ee
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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";