Make WordPress Core


Ignore:
Timestamp:
05/29/2010 12:32:10 AM (16 years ago)
Author:
wpmuguru
Message:

strip www before adding subdomain when creating new site

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r15042 r15050  
    598598    // Check if the domain/path has been used already.
    599599    if ( is_subdomain_install() ) {
    600         $mydomain = "$blogname.$domain";
     600        $mydomain = $blogname . '.' . preg_replace( '|^www\.|', '', $domain );
    601601        $path = $base;
    602602    } else {
Note: See TracChangeset for help on using the changeset viewer.