Changeset 14553 for trunk/wp-admin/options-permalink.php
- Timestamp:
- 05/10/2010 10:06:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-permalink.php
r14139 r14553 76 76 $iis7_permalinks = iis7_supports_permalinks(); 77 77 78 $prefix = '';78 $prefix = $blog_prefix = ''; 79 79 if ( ! got_mod_rewrite() && ! $iis7_permalinks ) 80 $prefix .= '/index.php';80 $prefix = '/index.php'; 81 81 if ( is_multisite() && !is_subdomain_install() && is_main_site() ) 82 $ prefix .= '/blog';82 $blog_prefix = '/blog'; 83 83 84 84 if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { … … 175 175 $structures = array( 176 176 '', 177 '/%year%/%monthnum%/%day%/%postname%/',178 '/%year%/%monthnum%/%postname%/',179 '/archives/%post_id%'177 $prefix . '/%year%/%monthnum%/%day%/%postname%/', 178 $prefix . '/%year%/%monthnum%/%postname%/', 179 $prefix . '/archives/%post_id%' 180 180 ); 181 181 ?> … … 188 188 <tr> 189 189 <th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[1]); ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Day and name'); ?></label></th> 190 <td><code><?php echo get_option('home') . $ prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></td>190 <td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></td> 191 191 </tr> 192 192 <tr> 193 193 <th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[2]); ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> /> <?php _e('Month and name'); ?></label></th> 194 <td><code><?php echo get_option('home') . $ prefix . '/' . date('Y') . '/' . date('m') . '/sample-post/'; ?></code></td>194 <td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/sample-post/'; ?></code></td> 195 195 </tr> 196 196 <tr> 197 197 <th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[3]); ?>" class="tog" <?php checked($structures[3], $permalink_structure); ?> /> <?php _e('Numeric'); ?></label></th> 198 <td><code><?php echo get_option('home') . $ prefix; ?>/archives/123</code></td>198 <td><code><?php echo get_option('home') . $blog_prefix . $prefix; ?>/archives/123</code></td> 199 199 </tr> 200 200 <tr> … … 205 205 </th> 206 206 <td> 207 <?php echo $ prefix; ?>207 <?php echo $blog_prefix; ?> 208 208 <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo esc_attr($permalink_structure); ?>" class="regular-text code" /> 209 209 </td> … … 221 221 <tr> 222 222 <th><label for="category_base"><?php /* translators: prefix for category permalinks */ _e('Category base'); ?></label></th> 223 <td><?php echo $ prefix; ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></td>223 <td><?php echo $blog_prefix; ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></td> 224 224 </tr> 225 225 <tr> 226 226 <th><label for="tag_base"><?php _e('Tag base'); ?></label></th> 227 <td><?php echo $ prefix; ?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr($tag_base); ?>" class="regular-text code" /></td>227 <td><?php echo $blog_prefix; ?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr($tag_base); ?>" class="regular-text code" /></td> 228 228 </tr> 229 229 <?php do_settings_fields('permalink', 'optional'); ?>
Note: See TracChangeset
for help on using the changeset viewer.