WordPress.org

Make WordPress Core

Changeset 34691


Ignore:
Timestamp:
09/29/15 11:14:23 (2 years ago)
Author:
johnbillion
Message:

On the Permalink Settings screen, add a link to the Nginx documentation when the current site is running Nginx. This is in lieu of showing actual Nginx configuration like we do for mod_rewrite or IIS.

Fixes #18852

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-permalink.php

    r34022 r34691  
    252252        <?php endif; ?> 
    253253    <?php endif; ?> 
    254 <?php elseif ( ! $is_nginx ) : 
     254<?php elseif ( $is_nginx ) : ?> 
     255    <p><?php _e( '<a href="https://codex.wordpress.org/Nginx">Documentation on Nginx configuration</a>.' ); ?></p> 
     256<?php else: 
    255257    if ( $permalink_structure && ! $usingpi && ! $writable && $update_required ) : ?> 
    256258<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&#8217;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> 
Note: See TracChangeset for help on using the changeset viewer.