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-admin/ms-sites.php

    r15036 r15050  
    715715                                                <td>
    716716                                                <?php if ( is_subdomain_install() ) { ?>
    717                                                         <input name="blog[domain]" type="text" class="regular-text" title="<?php _e( 'Domain' ) ?>"/>.<?php echo $current_site->domain;?>
     717                                                        <input name="blog[domain]" type="text" class="regular-text" title="<?php _e( 'Domain' ) ?>"/>.<?php echo preg_replace( '|^www\.|', '', $current_site->domain );?>
    718718                                                <?php } else {
    719719                                                        echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" type="text" title="<?php _e( 'Domain' ) ?>"/>
Note: See TracChangeset for help on using the changeset viewer.