Skip to content

Commit fe0315b

Browse files
author
Ron Rennick
committed
Add beginning of string to regex in [12860], See WordPress#11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12861 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7744ae6 commit fe0315b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wp-admin/options-permalink.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function blurry() {
203203
</label>
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>
209209
</tr>
@@ -223,7 +223,7 @@ function blurry() {
223223
</tr>
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'); ?>
229229
</table>

0 commit comments

Comments
 (0)