diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 5a4a8d369f..43aef8c7ec 100644
a
|
b
|
function list_core_update( $update ) { |
38 | 38 | static $first_pass = true; |
39 | 39 | |
40 | 40 | $wp_version = get_bloginfo( 'version' ); |
41 | | $version_string = sprintf( '%s–<strong>%s</strong>', $update->current, $update->locale ); |
| 41 | $version_string = sprintf( '%s–%s', $update->current, get_locale() ); |
42 | 42 | |
43 | 43 | if ( 'en_US' === $update->locale && 'en_US' === get_locale() ) { |
44 | 44 | $version_string = $update->current; |
… |
… |
function list_core_update( $update ) { |
54 | 54 | if ( ! isset( $update->response ) || 'latest' === $update->response ) { |
55 | 55 | $current = true; |
56 | 56 | } |
57 | | |
58 | | $submit = __( 'Update Now' ); |
| 57 | preg_match( '/(alpha|beta|RC)(\d+)/', $version_string, $development ); |
| 58 | $submit = ! empty( $development ) ? __( 'Update to latest nightly' ) : __( 'Update Now' ); |
59 | 59 | $form_action = 'update-core.php?action=do-core-upgrade'; |
60 | 60 | $php_version = phpversion(); |
61 | 61 | $mysql_version = $wpdb->db_version(); |
… |
… |
function list_core_update( $update ) { |
65 | 65 | $message = __( 'You are using a development version of WordPress. You can update to the latest nightly build manually:' ); |
66 | 66 | } else { |
67 | 67 | if ( $current ) { |
| 68 | $message = ''; |
68 | 69 | /* translators: %s: WordPress version. */ |
69 | | $message = sprintf( __( 'If you need to re-install version %s, you can do so here:' ), $version_string ); |
70 | | $submit = __( 'Re-install Now' ); |
| 70 | $submit = sprintf( __( 'Re-install version %s' ), $version_string ); |
71 | 71 | $form_action = 'update-core.php?action=do-core-reinstall'; |
72 | 72 | } else { |
73 | 73 | $php_compat = version_compare( $php_version, $update->php_version, '>=' ); |