Changeset 43571 for trunk/src/wp-admin/options-permalink.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-permalink.php
r42875 r43571 177 177 __( 'https://codex.wordpress.org/Using_Permalinks' ) 178 178 ); 179 ?>179 ?> 180 180 </p> 181 181 … … 318 318 </form> 319 319 <?php if ( ! is_multisite() ) { ?> 320 <?php321 if ( $iis7_permalinks ) :322 if ( isset( $_POST['submit'] ) && $permalink_structure && ! $using_index_permalinks && ! $writable ) :323 if ( file_exists( $home_path . 'web.config' ) ) :324 ?>325 <p> 326 <?php327 printf(328 /* translators: 1: web.config, 2: Codex URL, 3: CTRL + a, 4: element code */329 __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it isn’t so this is the url rewrite rule you should have in your %1$s file. Click in the field and press %3$s to select all. Then insert this rule inside of the %4$s element in %1$s file.' ),330 '<code>web.config</code>',331 __( 'https://codex.wordpress.org/Changing_File_Permissions' ),332 '<kbd>CTRL + a</kbd>',333 '<code>/<configuration>/<system.webServer>/<rewrite>/<rules></code>'334 );335 ?>320 <?php 321 if ( $iis7_permalinks ) : 322 if ( isset( $_POST['submit'] ) && $permalink_structure && ! $using_index_permalinks && ! $writable ) : 323 if ( file_exists( $home_path . 'web.config' ) ) : 324 ?> 325 <p> 326 <?php 327 printf( 328 /* translators: 1: web.config, 2: Codex URL, 3: CTRL + a, 4: element code */ 329 __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it isn’t so this is the url rewrite rule you should have in your %1$s file. Click in the field and press %3$s to select all. Then insert this rule inside of the %4$s element in %1$s file.' ), 330 '<code>web.config</code>', 331 __( 'https://codex.wordpress.org/Changing_File_Permissions' ), 332 '<kbd>CTRL + a</kbd>', 333 '<code>/<configuration>/<system.webServer>/<rewrite>/<rules></code>' 334 ); 335 ?> 336 336 </p> 337 337 <form action="options-permalink.php" method="post"> 338 <?php wp_nonce_field( 'update-permalink' ); ?>338 <?php wp_nonce_field( 'update-permalink' ); ?> 339 339 <p><textarea rows="9" class="large-text readonly" name="rules" id="rules" readonly="readonly"><?php echo esc_textarea( $wp_rewrite->iis7_url_rewrite_rules() ); ?></textarea></p> 340 340 </form> 341 341 <p> 342 <?php343 printf(344 /* translators: %s: web.config */345 __( 'If you temporarily make your %s file writable for us to generate rewrite rules automatically, do not forget to revert the permissions after rule has been saved.' ),346 '<code>web.config</code>'347 );348 ?>342 <?php 343 printf( 344 /* translators: %s: web.config */ 345 __( 'If you temporarily make your %s file writable for us to generate rewrite rules automatically, do not forget to revert the permissions after rule has been saved.' ), 346 '<code>web.config</code>' 347 ); 348 ?> 349 349 </p> 350 350 <?php else : ?> 351 351 <p> 352 <?php352 <?php 353 353 printf( 354 354 /* translators: 1: Codex URL, 2: web.config, 3: CTRL + a */ … … 358 358 '<kbd>CTRL + a</kbd>' 359 359 ); 360 ?>360 ?> 361 361 </p> 362 362 <form action="options-permalink.php" method="post"> 363 <?php wp_nonce_field( 'update-permalink' ); ?>363 <?php wp_nonce_field( 'update-permalink' ); ?> 364 364 <p><textarea rows="18" class="large-text readonly" name="rules" id="rules" readonly="readonly"><?php echo esc_textarea( $wp_rewrite->iis7_url_rewrite_rules( true ) ); ?></textarea></p> 365 365 </form> 366 366 <p> 367 <?php367 <?php 368 368 printf( 369 369 /* translators: %s: web.config */ … … 371 371 '<code>web.config</code>' 372 372 ); 373 ?>373 ?> 374 374 </p> 375 375 <?php endif; ?> … … 377 377 <?php elseif ( $is_nginx ) : ?> 378 378 <p><?php _e( '<a href="https://codex.wordpress.org/Nginx">Documentation on Nginx configuration</a>.' ); ?></p> 379 <?php379 <?php 380 380 else : 381 381 if ( $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) : 382 ?>383 <p> 384 <?php385 printf(386 /* translators: 1: .htaccess, 2: Codex URL, 3: CTRL + a */387 __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s to select all.' ),388 '<code>.htaccess</code>',389 __( 'https://codex.wordpress.org/Changing_File_Permissions' ),390 '<kbd>CTRL + a</kbd>'391 );392 ?>382 ?> 383 <p> 384 <?php 385 printf( 386 /* translators: 1: .htaccess, 2: Codex URL, 3: CTRL + a */ 387 __( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s to select all.' ), 388 '<code>.htaccess</code>', 389 __( 'https://codex.wordpress.org/Changing_File_Permissions' ), 390 '<kbd>CTRL + a</kbd>' 391 ); 392 ?> 393 393 </p> 394 394 <form action="options-permalink.php" method="post"> 395 <?php wp_nonce_field( 'update-permalink' ); ?>395 <?php wp_nonce_field( 'update-permalink' ); ?> 396 396 <p><textarea rows="6" class="large-text readonly" name="rules" id="rules" readonly="readonly"><?php echo esc_textarea( $wp_rewrite->mod_rewrite_rules() ); ?></textarea></p> 397 397 </form>
Note: See TracChangeset
for help on using the changeset viewer.