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;
|
$usingpi = false;
|
||||||
|
|
||||||
$wp_rewrite->flush_rules();
|
$wp_rewrite->flush_rules();
|
||||||
?>
|
|
||||||
|
|
||||||
<?php if (isset($_POST['submit'])) : ?>
|
|
||||||
|
if (isset($_POST['submit'])) : ?>
|
||||||
<div id="message" class="updated"><p><?php
|
<div id="message" class="updated"><p><?php
|
||||||
if ( $iis7_permalinks ) {
|
if ( ! is_multisite() ) {
|
||||||
if ( $permalink_structure && ! $usingpi && ! $writable )
|
if ( $iis7_permalinks ) {
|
||||||
_e('You should update your web.config now');
|
if ( $permalink_structure && ! $usingpi && ! $writable )
|
||||||
else if ( $permalink_structure && ! $usingpi && $writable)
|
_e('You should update your web.config now');
|
||||||
_e('Permalink structure updated. Remove write access on web.config file now!');
|
else if ( $permalink_structure && ! $usingpi && $writable )
|
||||||
else
|
_e('Permalink structure updated. Remove write access on web.config file now!');
|
||||||
_e('Permalink structure updated');
|
else
|
||||||
|
_e('Permalink structure updated');
|
||||||
|
} else {
|
||||||
|
if ( $permalink_structure && ! $usingpi && ! $writable )
|
||||||
|
_e('You should update your .htaccess now.');
|
||||||
|
else
|
||||||
|
_e('Permalink structure updated.');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( $permalink_structure && ! $usingpi && ! $writable )
|
_e('Permalink structure updated.');
|
||||||
_e('You should update your .htaccess now.');
|
|
||||||
else
|
|
||||||
_e('Permalink structure updated.');
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</p></div>
|
</p></div>
|
||||||
|
|
Loading…
Reference in New Issue