diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 978ffacd22..b6c52c517a 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -88,7 +88,7 @@ if ( $iis7_permalinks ) { } } -$usingpi = $wp_rewrite->using_index_permalinks(); +$using_index_permalinks = $wp_rewrite->using_index_permalinks(); if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { check_admin_referer('update-permalink'); @@ -129,12 +129,12 @@ if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { $message = __( 'Permalink structure updated.' ); if ( $iis7_permalinks ) { - if ( $permalink_structure && ! $usingpi && ! $writable ) { + if ( $permalink_structure && ! $using_index_permalinks && ! $writable ) { $message = __( 'You should update your web.config now.' ); - } elseif ( $permalink_structure && ! $usingpi && $writable ) { + } elseif ( $permalink_structure && ! $using_index_permalinks && $writable ) { $message = __( 'Permalink structure updated. Remove write access on web.config file now!' ); } - } elseif ( ! $is_nginx && $permalink_structure && ! $usingpi && ! $writable && $update_required ) { + } elseif ( ! $is_nginx && $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) { $message = __( 'You should update your .htaccess now.' ); } @@ -233,7 +233,7 @@ printf( __( 'If you like, you may enter custom structures for your category and
web.config file were writable, we could do this automatically, but it isn’t so this is the url rewrite rule you should have in your web.config
file. Click in the field and press CTRL + a to select all. Then insert this rule inside of the /<configuration>/<system.webServer>/<rewrite>/<rules>
element in web.config
file.') ?>