WordPress.org

Make WordPress Core

Changeset 13706


Ignore:
Timestamp:
03/15/2010 05:32:34 PM (10 years ago)
Author:
wpmuguru
Message:

suppress htaccess update message in multisite, props ocean90, fixes #12604

File:
1 edited

Legend:

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

    r13440 r13706  
    132132
    133133$wp_rewrite->flush_rules();
    134 ?>
    135 
    136 <?php if (isset($_POST['submit'])) : ?>
     134
     135
     136if (isset($_POST['submit'])) : ?>
    137137<div id="message" class="updated"><p><?php
    138 if ( $iis7_permalinks ) {
    139     if ( $permalink_structure && ! $usingpi && ! $writable )
    140         _e('You should update your web.config now');
    141     else if ( $permalink_structure && ! $usingpi && $writable)
    142         _e('Permalink structure updated. Remove write access on web.config file now!');
    143     else
    144         _e('Permalink structure updated');
     138if ( ! is_multisite() ) {
     139    if ( $iis7_permalinks ) {
     140        if ( $permalink_structure && ! $usingpi && ! $writable )
     141            _e('You should update your web.config now');
     142        else if ( $permalink_structure && ! $usingpi && $writable )
     143            _e('Permalink structure updated. Remove write access on web.config file now!');
     144        else
     145            _e('Permalink structure updated');
     146    } else {
     147        if ( $permalink_structure && ! $usingpi && ! $writable )
     148            _e('You should update your .htaccess now.');
     149        else
     150            _e('Permalink structure updated.');
     151    }
    145152} else {
    146     if ( $permalink_structure && ! $usingpi && ! $writable )
    147         _e('You should update your .htaccess now.');
    148     else
    149         _e('Permalink structure updated.');
     153    _e('Permalink structure updated.');
    150154}
    151155?>
Note: See TracChangeset for help on using the changeset viewer.