diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 5a4a8d369f..7cf8199516 100644
a
|
b
|
function list_core_update( $update ) { |
55 | 55 | $current = true; |
56 | 56 | } |
57 | 57 | |
58 | | $submit = __( 'Update Now' ); |
| 58 | preg_match( '/(alpha|beta|RC)(\d+)/', $version_string, $nightly ); |
| 59 | $submit = ! empty( $nightly ) ? __( 'Update to latest nightly' ) : __( 'Update Now' ); |
59 | 60 | $form_action = 'update-core.php?action=do-core-upgrade'; |
60 | 61 | $php_version = phpversion(); |
61 | 62 | $mysql_version = $wpdb->db_version(); |
… |
… |
function list_core_update( $update ) { |
65 | 66 | $message = __( 'You are using a development version of WordPress. You can update to the latest nightly build manually:' ); |
66 | 67 | } else { |
67 | 68 | if ( $current ) { |
| 69 | $message = ''; |
68 | 70 | /* 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' ); |
| 71 | $submit = sprintf( __( 'Re-install %s' ), $version_string ); |
71 | 72 | $form_action = 'update-core.php?action=do-core-reinstall'; |
72 | 73 | } else { |
73 | 74 | $php_compat = version_compare( $php_version, $update->php_version, '>=' ); |