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:
wpmuguru 2010-03-15 17:32:34 +00:00
parent cb22e5b10a
commit 5ce50c73d9
1 changed files with 17 additions and 13 deletions

View File

@ -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>