From 83b2339a0e39deb15a4fb7a74f68a819e5fada71 Mon Sep 17 00:00:00 2001
From: Tonya Mork
Date: Tue, 5 Oct 2021 23:09:21 +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.
git-svn-id: https://develop.svn.wordpress.org/trunk@51892 602fd350-edb4-49c9-b593-d223f7449a82
---
src/wp-admin/options-permalink.php | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/src/wp-admin/options-permalink.php b/src/wp-admin/options-permalink.php
index 4275a4a2c6..17a9083cb6 100644
--- a/src/wp-admin/options-permalink.php
+++ b/src/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.' ); ?>
-