Changeset 48712 for trunk/src/wp-admin/options-permalink.php
- Timestamp:
- 08/02/2020 12:49:08 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-permalink.php
r48711 r48712 161 161 $message = __( 'Permalink structure updated.' ); 162 162 163 if ( $iis7_permalinks ) { 164 if ( $permalink_structure && ! $using_index_permalinks && ! $writable ) { 163 if ( $permalink_structure && ! $using_index_permalinks ) { 164 if ( $iis7_permalinks ) { 165 if ( ! $writable ) { 166 $message = sprintf( 167 /* translators: %s: web.config */ 168 __( 'You should update your %s file now.' ), 169 '<code>web.config</code>' 170 ); 171 } else { 172 $message = sprintf( 173 /* translators: %s: web.config */ 174 __( 'Permalink structure updated. Remove write access on %s file now!' ), 175 '<code>web.config</code>' 176 ); 177 } 178 } elseif ( ! $is_nginx && $htaccess_update_required && ! $writable ) { 165 179 $message = sprintf( 166 /* translators: %s: web.config*/180 /* translators: %s: .htaccess */ 167 181 __( 'You should update your %s file now.' ), 168 '<code>web.config</code>' 169 ); 170 } elseif ( $permalink_structure && ! $using_index_permalinks && $writable ) { 171 $message = sprintf( 172 /* translators: %s: web.config */ 173 __( 'Permalink structure updated. Remove write access on %s file now!' ), 174 '<code>web.config</code>' 182 '<code>.htaccess</code>' 175 183 ); 176 184 } 177 } elseif ( ! $is_nginx && $permalink_structure && ! $using_index_permalinks && ! $writable && $htaccess_update_required ) {178 $message = sprintf(179 /* translators: %s: .htaccess */180 __( 'You should update your %s file now.' ),181 '<code>.htaccess</code>'182 );183 185 } 184 186
Note: See TracChangeset
for help on using the changeset viewer.