From 34229a428636c3af5501afd0e85c8a2eaceb7a77 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 23 Feb 2023 11:06:19 +0000 Subject: [PATCH] Help/About: Avoid extra redirections on HelpHub Links. This changeset replaces various HelpHub links that have changed to avoid extra 301 redirections. Props sabernhardt, audrasjb. See #57726. Built from https://develop.svn.wordpress.org/trunk@55414 git-svn-id: http://core.svn.wordpress.org/trunk@54947 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-comments.php | 4 ++-- wp-admin/edit-form-advanced.php | 2 +- wp-admin/includes/meta-boxes.php | 4 ++-- wp-admin/includes/options.php | 2 +- wp-admin/options-general.php | 2 +- wp-admin/options-permalink.php | 2 +- wp-admin/plugins.php | 2 +- wp-admin/themes.php | 2 +- wp-admin/user-edit.php | 2 +- wp-admin/widgets-form.php | 2 +- wp-content/themes/twentyeleven/inc/theme-options.php | 4 ++-- .../class-wp-customize-nav-menu-locations-control.php | 2 +- wp-includes/formatting.php | 2 +- wp-includes/user.php | 2 +- wp-includes/version.php | 2 +- wp-includes/widgets.php | 2 +- 16 files changed, 19 insertions(+), 19 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index e47e3c7ad4..866678badf 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -208,8 +208,8 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

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

' . '

' . __( 'Documentation on Comments' ) . '

' . - '

' . __( 'Documentation on Comment Spam' ) . '

' . - '

' . __( 'Documentation on Keyboard Shortcuts' ) . '

' . + '

' . __( 'Documentation on Comment Spam' ) . '

' . + '

' . __( 'Documentation on Keyboard Shortcuts' ) . '

' . '

' . __( 'Support forums' ) . '

' ); diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 88bffa4995..12344df3ba 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -316,7 +316,7 @@ if ( 'post' === $post_type ) { 'tools.php' ) . '

' . '

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

' . - '

' . __( 'Documentation on Writing and Editing Posts' ) . '

' . + '

' . __( 'Documentation on Writing and Editing Posts' ) . '

' . '

' . __( 'Support forums' ) . '

' ); } elseif ( 'page' === $post_type ) { diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 0e7be72d59..7cd8496aff 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -746,7 +746,7 @@ function post_excerpt_meta_box( $post ) { printf( /* translators: %s: Documentation URL. */ __( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts.' ), - __( 'https://wordpress.org/documentation/article/excerpt/' ) + __( 'https://wordpress.org/documentation/article/what-is-an-excerpt-classic-editor/' ) ); ?>

@@ -821,7 +821,7 @@ function post_custom_meta_box( $post ) { printf( /* translators: %s: Documentation URL. */ __( 'Custom fields can be used to add extra metadata to a post that you can use in your theme.' ), - __( 'https://wordpress.org/documentation/article/custom-fields/' ) + __( 'https://wordpress.org/documentation/article/assign-custom-fields/' ) ); ?>

diff --git a/wp-admin/includes/options.php b/wp-admin/includes/options.php index 82847bb4d6..0f85441b76 100644 --- a/wp-admin/includes/options.php +++ b/wp-admin/includes/options.php @@ -130,5 +130,5 @@ function options_reading_add_js() { */ function options_reading_blog_charset() { echo ''; - echo '

' . __( 'The character encoding of your site (UTF-8 is recommended)' ) . '

'; + echo '

' . __( 'The character encoding of your site (UTF-8 is recommended)' ) . '

'; } diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index b99a86315e..40fed1cd5f 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -410,7 +410,7 @@ foreach ( $time_formats as $format ) { '

' . __( 'Preview:' ) . ' ' . date_i18n( get_option( 'time_format' ) ) . '' . "\n" . '

'; - echo "\t

" . __( 'Documentation on date and time formatting.' ) . "

\n"; + echo "\t

" . __( 'Documentation on date and time formatting.' ) . "

\n"; ?> diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 1819884c64..b16b63b130 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -58,7 +58,7 @@ get_current_screen()->add_help_tab( $help_sidebar_content = '

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

' . '

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

' . - '

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

'; + '

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

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

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

'; diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 6399ff50b6..164467952f 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -585,7 +585,7 @@ if ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type( get_current_screen()->set_help_sidebar( '

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

' . - '

' . __( 'Documentation on Managing Plugins' ) . '

' . + '

' . __( 'Documentation on Managing Plugins' ) . '

' . $help_sidebar_autoupdates . '

' . __( 'Support forums' ) . '

' ); diff --git a/wp-admin/themes.php b/wp-admin/themes.php index ff09c49166..99534b6276 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -204,7 +204,7 @@ if ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( get_current_screen()->set_help_sidebar( '

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

' . - '

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

' . + '

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

' . '

' . __( 'Documentation on Managing Themes' ) . '

' . $help_sidebar_autoupdates . '

' . __( 'Support forums' ) . '

' diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 3838b7ba1a..79e7b49800 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -333,7 +333,7 @@ switch ( $action ) { comment_shortcuts ); ?> /> - Documentation on Keyboard Shortcuts' ); ?> + Documentation on Keyboard Shortcuts' ); ?> diff --git a/wp-admin/widgets-form.php b/wp-admin/widgets-form.php index 1a58b4a969..fe1c0731c8 100644 --- a/wp-admin/widgets-form.php +++ b/wp-admin/widgets-form.php @@ -68,7 +68,7 @@ get_current_screen()->add_help_tab( get_current_screen()->set_help_sidebar( '

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

' . - '

' . __( 'Documentation on Widgets' ) . '

' . + '

' . __( 'Documentation on Widgets' ) . '

' . '

' . __( 'Support forums' ) . '

' ); diff --git a/wp-content/themes/twentyeleven/inc/theme-options.php b/wp-content/themes/twentyeleven/inc/theme-options.php index 45c1e793e5..816fa93fbb 100644 --- a/wp-content/themes/twentyeleven/inc/theme-options.php +++ b/wp-content/themes/twentyeleven/inc/theme-options.php @@ -118,8 +118,8 @@ function twentyeleven_theme_options_help() { '

' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'twentyeleven' ) . '

'; $sidebar = '

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

' . - '

' . __( 'Documentation on Theme Options', 'twentyeleven' ) . '

' . - '

' . __( 'Support', 'twentyeleven' ) . '

'; + '

' . __( 'Documentation on Theme Customization', 'twentyeleven' ) . '

' . + '

' . __( 'Support forums', 'twentyeleven' ) . '

'; $screen = get_current_screen(); diff --git a/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php b/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php index 7418ed6d40..434fcba30a 100644 --- a/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php +++ b/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php @@ -50,7 +50,7 @@ class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control { printf( /* translators: 1: Documentation URL, 2: Additional link attributes, 3: Accessibility text. */ _x( '(If you plan to use a menu widget%3$s, skip this step.)', 'menu locations' ), - __( 'https://wordpress.org/documentation/article/wordpress-widgets/' ), + __( 'https://wordpress.org/documentation/article/manage-wordpress-widgets/' ), ' class="external-link" target="_blank"', sprintf( ' %s', diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index f546f5e710..7f27a02a44 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4963,7 +4963,7 @@ function sanitize_option( $option, $value ) { $error = sprintf( /* translators: %s: Documentation URL. */ __( 'A structure tag is required when using custom permalinks. Learn more' ), - __( 'https://wordpress.org/documentation/article/using-permalinks/#choosing-your-permalink-structure' ) + __( 'https://wordpress.org/documentation/article/customize-permalinks/#choosing-your-permalink-structure' ) ); } break; diff --git a/wp-includes/user.php b/wp-includes/user.php index 8068900197..ba63576fd6 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -3274,7 +3274,7 @@ function retrieve_password( $user_login = null ) { sprintf( /* translators: %s: Documentation URL. */ __( 'Error: The email could not be sent. Your site may not be correctly configured to send emails. Get support for resetting your password.' ), - esc_url( __( 'https://wordpress.org/documentation/article/resetting-your-password/' ) ) + esc_url( __( 'https://wordpress.org/documentation/article/reset-your-password/' ) ) ) ); return $errors; diff --git a/wp-includes/version.php b/wp-includes/version.php index 0549bb34d5..e4abf1ff1f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta3-55413'; +$wp_version = '6.2-beta3-55414'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index eafe3b0ac0..6d28bbfb53 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -10,7 +10,7 @@ * This functionality was found in a plugin before the WordPress 2.2 release, which * included it in the core from that point on. * - * @link https://wordpress.org/documentation/article/wordpress-widgets/ + * @link https://wordpress.org/documentation/article/manage-wordpress-widgets/ * @link https://developer.wordpress.org/themes/functionality/widgets/ * * @package WordPress