diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php
index d3e7f2cd46..0479320d14 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 ) { |
55 | 55 | $current = true; |
56 | 56 | } |
57 | 57 | |
58 | | $submit = __( 'Update Now' ); |
59 | | $form_action = 'update-core.php?action=do-core-upgrade'; |
60 | | $php_version = phpversion(); |
61 | | $mysql_version = $wpdb->db_version(); |
62 | | $show_buttons = true; |
| 58 | $is_development_version = preg_match( '/alpha|beta|RC/', $version_string ); |
| 59 | $submit = $is_development_version ? __( 'Update to latest nightly' ) : __( 'Update now' ); |
| 60 | $form_action = 'update-core.php?action=do-core-upgrade'; |
| 61 | $php_version = phpversion(); |
| 62 | $mysql_version = $wpdb->db_version(); |
| 63 | $show_buttons = true; |
63 | 64 | |
64 | 65 | if ( 'development' === $update->response ) { |
65 | 66 | $message = __( '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 version %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, '>=' ); |
… |
… |
get_current_screen()->add_help_tab( |
932 | 933 | ) |
933 | 934 | ); |
934 | 935 | |
935 | | $updates_howto = '<p>' . __( '<strong>WordPress</strong> — Updating your WordPress installation is a simple one-click procedure: just <strong>click on the “Update Now” button</strong> when you are notified that a new version is available.' ) . ' ' . __( 'In most cases, WordPress will automatically apply maintenance and security updates in the background for you.' ) . '</p>'; |
| 936 | $updates_howto = '<p>' . __( '<strong>WordPress</strong> — Updating your WordPress installation is a simple one-click procedure: just <strong>click on the “Update now” button</strong> when you are notified that a new version is available.' ) . ' ' . __( 'In most cases, WordPress will automatically apply maintenance and security updates in the background for you.' ) . '</p>'; |
936 | 937 | $updates_howto .= '<p>' . __( '<strong>Themes and Plugins</strong> — To update individual themes or plugins from this screen, use the checkboxes to make your selection, then <strong>click on the appropriate “Update” button</strong>. To update all of your themes or plugins at once, you can check the box at the top of the section to select all before clicking the update button.' ) . '</p>'; |
937 | 938 | |
938 | 939 | if ( 'en_US' !== get_locale() ) { |