Ticket #47848: 47848.diff
File 47848.diff, 1.4 KB (added by , 3 years ago) |
---|
-
src/wp-admin/_index.php
107 107 108 108 unset( $help ); 109 109 110 $wp_version = get_bloginfo( 'version', 'display' ); 111 $is_dev_version = preg_match( '/alpha|beta|RC/', $wp_version ); 110 $wp_version = get_bloginfo( 'version', 'display' ); 111 /* translators: %s: WordPress version. */ 112 $wp_version_text = sprintf( __( 'Version %s' ), $wp_version ); 113 $is_dev_version = preg_match( '/alpha|beta|RC/', $wp_version ); 112 114 113 if ( $is_dev_version ) { 114 /* translators: %s. The WordPress version. */ 115 $wp_version_text = sprintf( __( 'Version %s' ), $wp_version ); 116 } else { 115 if ( ! $is_dev_version ) { 116 $version_url = sprintf( 117 /* translators: %s: WordPress version. */ 118 esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ), 119 sanitize_title( $wp_version ) 120 ); 121 117 122 $wp_version_text = sprintf( 118 /* 119 * translators: 120 * 1. A link to the changelog ending with the WordPress version where '.' is replaced by '-'. 121 * 2. The WordPress version. 122 */ 123 __( '<a href="%1$s">Version %2$s</a>' ), 124 esc_url( 'https://wordpress.org/support/wordpress-version/version-' . str_replace( '.', '-', $wp_version ) ), 125 $wp_version 123 '<a href="%1$s">%2$s</a>', 124 $version_url, 125 $wp_version_text 126 126 ); 127 127 } 128 128