suppress htaccess update message in multisite, props ocean90, fixes #12604
git-svn-id: http://svn.automattic.com/wordpress/trunk@13706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cb22e5b10a
commit
5ce50c73d9
|
@ -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