WordPress.org

Make WordPress Core

Ticket #19472: 19472.2.patch

File 19472.2.patch, 2.1 KB (added by ocean90, 6 years ago)
  • wp-admin/options-permalink.php

     
    148148if ( ! is_multisite() ) {
    149149        if ( $iis7_permalinks ) {
    150150                if ( $permalink_structure && ! $usingpi && ! $writable )
    151                         _e('You should update your web.config now');
     151                        _e('You should update your web.config now.');
    152152                else if ( $permalink_structure && ! $usingpi && $writable )
    153153                        _e('Permalink structure updated. Remove write access on web.config file now!');
    154154                else
    155                         _e('Permalink structure updated');
     155                        _e('Permalink structure updated.');
    156156        } else {
    157157                if ( $permalink_structure && ! $usingpi && ! $writable )
    158158                        _e('You should update your .htaccess now.');
     
    226226</table>
    227227
    228228<h3><?php _e('Optional'); ?></h3>
    229 <?php if ( $is_apache || $iis7_permalinks ) : ?>
    230         <p><?php _e('If you like, you may enter custom structures for your category and tag <abbr title="Universal Resource Locator">URL</abbr>s here. For example, using <kbd>topics</kbd> as your category base would make your category links like <code>http://example.org/topics/uncategorized/</code>. If you leave these blank the defaults will be used.') ?></p>
    231 <?php else : ?>
    232         <p><?php _e('If you like, you may enter custom structures for your category and tag <abbr title="Universal Resource Locator">URL</abbr>s here. For example, using <code>topics</code> as your category base would make your category links like <code>http://example.org/index.php/topics/uncategorized/</code>. If you leave these blank the defaults will be used.') ?></p>
    233 <?php endif; ?>
     229<?php
     230$suffix = '';
     231if ( ! $is_apache && ! $iis7_permalinks )
     232        $suffix = 'index.php/'
     233?>
     234<p><?php printf( __('If you like, you may enter custom structures for your category and tag <abbr title="Universal Resource Locator">URL</abbr>s here. For example, using <code>topics</code> as your category base would make your category links like <code>http://example.org/%stopics/uncategorized/</code>. If you leave these blank the defaults will be used.'), $suffix ); ?></p>
    234235
    235236<table class="form-table">
    236237        <tr>