diff --git a/wp-admin/index.php b/wp-admin/index.php index 4b4f149321..b21f7d7ce4 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -107,10 +107,30 @@ $screen->add_help_tab( unset( $help ); +$wp_version = get_bloginfo( 'version', 'display' ); +$is_dev_version = preg_match( '/alpha|beta|RC/', $wp_version ); + +if ( $is_dev_version ) { + /* translators: %s. The WordPress version. */ + $wp_version_text = sprintf( __( 'Version %s' ), $wp_version ); +} else { + $wp_version_text = sprintf( + /* + * translators: + * 1. A link to the changelog ending with the WordPress version where '.' is replaced by '-'. + * 2. The WordPress version. + */ + __( 'Version %2$s' ), + esc_url( 'https://wordpress.org/support/wordpress-version/version-' . str_replace( '.', '-', $wp_version ) ), + $wp_version + ); +} + $screen->set_help_sidebar( '
' . __( 'For more information:' ) . '
' . '' . __( 'Documentation on Dashboard' ) . '
' . - '' . __( 'Support' ) . '
' + '' . __( 'Support' ) . '
' . + '' . $wp_version_text . '
' ); require_once ABSPATH . 'wp-admin/admin-header.php'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 86fc8c3bef..a49d5a8420 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51984'; +$wp_version = '5.9-alpha-51985'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.