WordPress.org

Make WordPress Core

Changeset 38067


Ignore:
Timestamp:
07/16/2016 12:45:01 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Permalinks: Rename $usingpi to $using_index_permalinks for clarity.

See #37380.

File:
1 edited

Legend:

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

    r38066 r38067  
    8989}
    9090
    91 $usingpi = $wp_rewrite->using_index_permalinks();
     91$using_index_permalinks = $wp_rewrite->using_index_permalinks();
    9292
    9393if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) {
     
    130130
    131131    if ( $iis7_permalinks ) {
    132         if ( $permalink_structure && ! $usingpi && ! $writable ) {
     132        if ( $permalink_structure && ! $using_index_permalinks && ! $writable ) {
    133133            $message = __( 'You should update your web.config now.' );
    134         } elseif ( $permalink_structure && ! $usingpi && $writable ) {
     134        } elseif ( $permalink_structure && ! $using_index_permalinks && $writable ) {
    135135            $message = __( 'Permalink structure updated. Remove write access on web.config file now!' );
    136136        }
    137     } elseif ( ! $is_nginx && $permalink_structure && ! $usingpi && ! $writable && $update_required ) {
     137    } elseif ( ! $is_nginx && $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) {
    138138        $message = __( 'You should update your .htaccess now.' );
    139139    }
     
    234234<?php if ( !is_multisite() ) { ?>
    235235<?php if ( $iis7_permalinks ) :
    236     if ( isset($_POST['submit']) && $permalink_structure && ! $usingpi && ! $writable ) :
     236    if ( isset($_POST['submit']) && $permalink_structure && ! $using_index_permalinks && ! $writable ) :
    237237        if ( file_exists($home_path . 'web.config') ) : ?>
    238238<p><?php _e('If your <code>web.config</code> file were <a href="https://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn&#8217;t so this is the url rewrite rule you should have in your <code>web.config</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all. Then insert this rule inside of the <code>/&lt;configuration&gt;/&lt;system.webServer&gt;/&lt;rewrite&gt;/&lt;rules&gt;</code> element in <code>web.config</code> file.') ?></p>
     
    254254    <p><?php _e( '<a href="https://codex.wordpress.org/Nginx">Documentation on Nginx configuration</a>.' ); ?></p>
    255255<?php else:
    256     if ( $permalink_structure && ! $usingpi && ! $writable && $update_required ) : ?>
     256    if ( $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) : ?>
    257257<p><?php _e('If your <code>.htaccess</code> file were <a href="https://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn&#8217;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>
    258258<form action="options-permalink.php" method="post">
Note: See TracChangeset for help on using the changeset viewer.