WordPress.org

Make WordPress Core

Changeset 12861


Ignore:
Timestamp:
01/26/10 23:38:23 (4 years ago)
Author:
wpmuguru
Message:

Add beginning of string to regex in [12860], See #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-permalink.php

    r12860 r12861  
    204204        </th> 
    205205        <td> 
    206             <?php if ( is_multisite() && !is_subdomain_install() && is_main_site() ) { echo "/blog"; $permalink_structure = preg_replace( "|/?blog|", "", $permalink_structure ); }?> 
     206            <?php if ( is_multisite() && !is_subdomain_install() && is_main_site() ) { echo "/blog"; $permalink_structure = preg_replace( "|^/?blog|", "", $permalink_structure ); }?> 
    207207            <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo esc_attr($permalink_structure); ?>" class="regular-text code" /> 
    208208        </td> 
     
    224224    <tr> 
    225225        <th><label for="tag_base"><?php _e('Tag base'); ?></label></th> 
    226         <td><?php if ( is_multisite() && !is_subdomain_install() && is_main_site() ) { echo "/blog"; $tag_base = preg_replace( "|/?blog|", "", $tag_base ); }?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr($tag_base); ?>" class="regular-text code" /></td> 
     226        <td><?php if ( is_multisite() && !is_subdomain_install() && is_main_site() ) { echo "/blog"; $tag_base = preg_replace( "|^/?blog|", "", $tag_base ); }?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr($tag_base); ?>" class="regular-text code" /></td> 
    227227    </tr> 
    228228    <?php do_settings_fields('permalink', 'optional'); ?> 
Note: See TracChangeset for help on using the changeset viewer.