suppress htaccess update message in multisite, props ocean90, fixes #12604
git-svn-id: https://develop.svn.wordpress.org/trunk@13706 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a56fef6907
commit
5c18ec70f6
@ -131,22 +131,26 @@ else
|
||||
$usingpi = false;
|
||||
|
||||
$wp_rewrite->flush_rules();
|
||||
?>
|
||||
|
||||
<?php if (isset($_POST['submit'])) : ?>
|
||||
|
||||
if (isset($_POST['submit'])) : ?>
|
||||
<div id="message" class="updated"><p><?php
|
||||
if ( $iis7_permalinks ) {
|
||||
if ( $permalink_structure && ! $usingpi && ! $writable )
|
||||
_e('You should update your web.config now');
|
||||
else if ( $permalink_structure && ! $usingpi && $writable)
|
||||
_e('Permalink structure updated. Remove write access on web.config file now!');
|
||||
else
|
||||
_e('Permalink structure updated');
|
||||
if ( ! is_multisite() ) {
|
||||
if ( $iis7_permalinks ) {
|
||||
if ( $permalink_structure && ! $usingpi && ! $writable )
|
||||
_e('You should update your web.config now');
|
||||
else if ( $permalink_structure && ! $usingpi && $writable )
|
||||
_e('Permalink structure updated. Remove write access on web.config file now!');
|
||||
else
|
||||
_e('Permalink structure updated');
|
||||
} else {
|
||||
if ( $permalink_structure && ! $usingpi && ! $writable )
|
||||
_e('You should update your .htaccess now.');
|
||||
else
|
||||
_e('Permalink structure updated.');
|
||||
}
|
||||
} else {
|
||||
if ( $permalink_structure && ! $usingpi && ! $writable )
|
||||
_e('You should update your .htaccess now.');
|
||||
else
|
||||
_e('Permalink structure updated.');
|
||||
_e('Permalink structure updated.');
|
||||
}
|
||||
?>
|
||||
</p></div>
|
||||
|
Loading…
Reference in New Issue
Block a user