Changeset 25456 for trunk/src/wp-admin/options-permalink.php
- Timestamp:
- 09/16/2013 08:06:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-permalink.php
r25206 r25456 76 76 77 77 $prefix = $blog_prefix = ''; 78 if ( ! got_ mod_rewrite() && ! $iis7_permalinks)78 if ( ! got_url_rewrite() ) 79 79 $prefix = '/index.php'; 80 80 if ( is_multisite() && !is_subdomain_install() && is_main_site() ) … … 127 127 else 128 128 $writable = false; 129 } elseif ( $is_nginx ) { 130 $writable = false; 129 131 } else { 130 132 if ( ( ! file_exists($home_path . '.htaccess') && is_writable($home_path) ) || is_writable($home_path . '.htaccess') ) … … 153 155 else 154 156 _e('Permalink structure updated.'); 157 } elseif ( $is_nginx ) { 158 _e('Permalink structure updated.'); 155 159 } else { 156 160 if ( $permalink_structure && ! $usingpi && ! $writable ) … … 227 231 <h3 class="title"><?php _e('Optional'); ?></h3> 228 232 <?php 229 $suffix = '';230 if ( ! $is_apache && ! $iis7_permalinks)231 $suffix = $wp_rewrite->index. '/';233 $suffix = $prefix; 234 if ( $suffix ) 235 $suffix = ltrim( $suffix, '/' ) . '/'; 232 236 ?> 233 237 <p><?php … … 270 274 <?php endif; ?> 271 275 <?php endif; ?> 272 <?php else :276 <?php elseif ( ! $is_nginx ) : 273 277 if ( $permalink_structure && ! $usingpi && ! $writable ) : ?> 274 278 <p><?php _e('If your <code>.htaccess</code> file were <a href="http://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all.') ?></p>
Note: See TracChangeset
for help on using the changeset viewer.