From 84e3375cd7d713b584b34c48e19c66ba8c6968ee Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Tue, 5 Oct 2021 23:11:06 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@51892 git-svn-id: http://core.svn.wordpress.org/trunk@51485 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-permalink.php | 22 +++++++++++++--------- wp-includes/version.php | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 4275a4a2c6..17a9083cb6 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -56,12 +56,18 @@ get_current_screen()->add_help_tab( ) ); -get_current_screen()->set_help_sidebar( - '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Permalinks Settings' ) . '

' . - '

' . __( 'Documentation on Using Permalinks' ) . '

' . - '

' . __( 'Support' ) . '

' -); +$help_sidebar_content = '

' . __( 'For more information:' ) . '

' . + '

' . __( 'Documentation on Permalinks Settings' ) . '

' . + '

' . __( 'Documentation on Using Permalinks' ) . '

'; + +if ( $is_nginx ) { + $help_sidebar_content .= '

' . __( 'Documentation on Nginx configuration.' ) . '

'; +} + +$help_sidebar_content .= '

' . __( 'Support' ) . '

'; + +get_current_screen()->set_help_sidebar( $help_sidebar_content ); +unset( $help_sidebar_content ); $home_path = get_home_path(); $iis7_permalinks = iis7_supports_permalinks(); @@ -410,9 +416,7 @@ printf( __( 'If you like, you may enter custom structures for your category and

- -

Documentation on Nginx configuration.' ); ?>

- diff --git a/wp-includes/version.php b/wp-includes/version.php index 69373f3e7d..ba470bd9fa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51891'; +$wp_version = '5.9-alpha-51892'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.