Make WordPress Core

Ticket #39258: 39258.diff

File 39258.diff, 2.0 KB (added by audrasjb, 4 years ago)

Permalinks: Move information located at the bottom of options-permalink.php into Contextual Help

  • src/wp-admin/options-permalink.php

    diff --git a/src/wp-admin/options-permalink.php b/src/wp-admin/options-permalink.php
    index 4275a4a2c6..5ac179cab9 100644
    a b get_current_screen()->add_help_tab( 
    5656        )
    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 );
    6570
    6671$home_path           = get_home_path();
    6772$iis7_permalinks     = iis7_supports_permalinks();
    printf( __( 'If you like, you may enter custom structures for your category and 
    410415</p>
    411416                <?php endif; ?>
    412417        <?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
    416 else :
     418<?php else :
    417419        if ( $permalink_structure && ! $using_index_permalinks && ! $writable && $htaccess_update_required ) :
    418420                ?>
    419421<p id="htaccess-description">