Help/About: Use the new /documentation/ URLs for links about WordPress version.

As `https://wordpress.org/support/` was redirected to `https://wordpress.org/documentation/`, this changeset replaces various `/support/*` links with `/documentation/*` to avoid extra redirects.

Follow-up to [55412], [55413], [55414].

Props wildworks.
See #58052, #57726.


git-svn-id: https://develop.svn.wordpress.org/trunk@55624 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2023-04-04 22:36:30 +00:00
parent e2e696ea33
commit 75072ed2e9
5 changed files with 5 additions and 5 deletions

View File

@ -116,7 +116,7 @@ $is_dev_version = preg_match( '/alpha|beta|RC/', $wp_version );
if ( ! $is_dev_version ) { if ( ! $is_dev_version ) {
$version_url = sprintf( $version_url = sprintf(
/* translators: %s: WordPress version. */ /* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ), esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ),
sanitize_title( $wp_version ) sanitize_title( $wp_version )
); );

View File

@ -266,7 +266,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
__( '<a href="%1$s">Read the WordPress %2$s Release Notes</a> for more information on the included enhancements and issues fixed, installation information, developer notes and resources, release contributors, and the list of file changes in this release.' ), __( '<a href="%1$s">Read the WordPress %2$s Release Notes</a> for more information on the included enhancements and issues fixed, installation information, developer notes and resources, release contributors, and the list of file changes in this release.' ),
sprintf( sprintf(
/* translators: %s: WordPress version number. */ /* translators: %s: WordPress version number. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ), esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ),
'6-2' '6-2'
), ),
'6.2' '6.2'

View File

@ -303,7 +303,7 @@ function update_nag() {
$version_url = sprintf( $version_url = sprintf(
/* translators: %s: WordPress version. */ /* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ), esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ),
sanitize_title( $cur->current ) sanitize_title( $cur->current )
); );

View File

@ -244,7 +244,7 @@ $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>='
$version_url = sprintf( $version_url = sprintf(
/* translators: %s: WordPress version. */ /* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ), esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ),
sanitize_title( $wp_version ) sanitize_title( $wp_version )
); );

View File

@ -78,7 +78,7 @@ header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option
elseif ( ! $php_compat || ! $mysql_compat ) : elseif ( ! $php_compat || ! $mysql_compat ) :
$version_url = sprintf( $version_url = sprintf(
/* translators: %s: WordPress version. */ /* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ), esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ),
sanitize_title( $wp_version ) sanitize_title( $wp_version )
); );