Changeset 38067
- Timestamp:
- 07/16/2016 12:45:01 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/options-permalink.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-permalink.php
r38066 r38067 89 89 } 90 90 91 $using pi= $wp_rewrite->using_index_permalinks();91 $using_index_permalinks = $wp_rewrite->using_index_permalinks(); 92 92 93 93 if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { … … 130 130 131 131 if ( $iis7_permalinks ) { 132 if ( $permalink_structure && ! $using pi&& ! $writable ) {132 if ( $permalink_structure && ! $using_index_permalinks && ! $writable ) { 133 133 $message = __( 'You should update your web.config now.' ); 134 } elseif ( $permalink_structure && ! $using pi&& $writable ) {134 } elseif ( $permalink_structure && ! $using_index_permalinks && $writable ) { 135 135 $message = __( 'Permalink structure updated. Remove write access on web.config file now!' ); 136 136 } 137 } elseif ( ! $is_nginx && $permalink_structure && ! $using pi&& ! $writable && $update_required ) {137 } elseif ( ! $is_nginx && $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) { 138 138 $message = __( 'You should update your .htaccess now.' ); 139 139 } … … 234 234 <?php if ( !is_multisite() ) { ?> 235 235 <?php if ( $iis7_permalinks ) : 236 if ( isset($_POST['submit']) && $permalink_structure && ! $using pi&& ! $writable ) :236 if ( isset($_POST['submit']) && $permalink_structure && ! $using_index_permalinks && ! $writable ) : 237 237 if ( file_exists($home_path . 'web.config') ) : ?> 238 238 <p><?php _e('If your <code>web.config</code> file were <a href="https://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn’t so this is the url rewrite rule you should have in your <code>web.config</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all. Then insert this rule inside of the <code>/<configuration>/<system.webServer>/<rewrite>/<rules></code> element in <code>web.config</code> file.') ?></p> … … 254 254 <p><?php _e( '<a href="https://codex.wordpress.org/Nginx">Documentation on Nginx configuration</a>.' ); ?></p> 255 255 <?php else: 256 if ( $permalink_structure && ! $using pi&& ! $writable && $update_required ) : ?>256 if ( $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) : ?> 257 257 <p><?php _e('If your <code>.htaccess</code> file were <a href="https://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all.') ?></p> 258 258 <form action="options-permalink.php" method="post">
Note: See TracChangeset
for help on using the changeset viewer.