Make WordPress Core

Changeset 51892


Ignore:
Timestamp:
10/05/2021 11:09:21 PM (3 years ago)
Author:
hellofromTonya
Message:

Permalinks: Move the Nginx documentation link to help sidebar in wp-admin/options-permalink.php.

The "Documentation on Nginx configuration." link is out of place being below the "Save Changes" button on the Settings > Permalinks UI.

This commit relocates the link to join the other support related content links in the help tab's "For more information:" right sidebar area.

Follow-up to [34691], [45674].

Props audrasjb, hellofromTonya, johnjamesjacoby, mukesh27, peterwilsoncc, timlappe.
Fixes #39258.

File:
1 edited

Legend:

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

    r51475 r51892  
    5757);
    5858
    59 get_current_screen()->set_help_sidebar(
    60     '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    61     '<p>' . __( '<a href="https://wordpress.org/support/article/settings-permalinks-screen/">Documentation on Permalinks Settings</a>' ) . '</p>' .
    62     '<p>' . __( '<a href="https://wordpress.org/support/article/using-permalinks/">Documentation on Using Permalinks</a>' ) . '</p>' .
    63     '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    64 );
     59$help_sidebar_content = '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
     60                        '<p>' . __( '<a href="https://wordpress.org/support/article/settings-permalinks-screen/">Documentation on Permalinks Settings</a>' ) . '</p>' .
     61                        '<p>' . __( '<a href="https://wordpress.org/support/article/using-permalinks/">Documentation on Using Permalinks</a>' ) . '</p>';
     62
     63if ( $is_nginx ) {
     64    $help_sidebar_content .= '<p>' . __( '<a href="https://wordpress.org/support/article/nginx/">Documentation on Nginx configuration</a>.' ) . '</p>';
     65}
     66
     67$help_sidebar_content .= '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>';
     68
     69get_current_screen()->set_help_sidebar( $help_sidebar_content );
     70unset( $help_sidebar_content );
    6571
    6672$home_path           = get_home_path();
     
    411417        <?php endif; ?>
    412418    <?php endif; ?>
    413 <?php elseif ( $is_nginx ) : ?>
    414     <p><?php _e( '<a href="https://wordpress.org/support/article/nginx/">Documentation on Nginx configuration</a>.' ); ?></p>
    415     <?php
     419        <?php
    416420else :
    417421    if ( $permalink_structure && ! $using_index_permalinks && ! $writable && $htaccess_update_required ) :
Note: See TracChangeset for help on using the changeset viewer.