Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/19/2011 03:57:24 PM (15 years ago)
Author:
boonebgorges
Message:

Strips leading www from root domain when creating new blogs. Fixes #3227. Props wpmuguru

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-template.php

    r4275 r4389  
    435435        echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span> <input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="50" /><br />';
    436436    else
    437         echo '<input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="50" /> <span class="suffix_address">.' . $current_site->domain . $current_site->path . '</span><br />';
     437        echo '<input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="50" /> <span class="suffix_address">.' . preg_replace( '|^www\.|', '', $current_site->domain ) . $current_site->path . '</span><br />';
    438438
    439439    if ( !is_user_logged_in() ) {
Note: See TracChangeset for help on using the changeset viewer.