diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index f1cb94552..d7f7831bc 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -19,12 +19,14 @@ if ( ! current_user_can( 'update_core' ) ) function list_core_update( $update ) { global $wp_local_package, $wpdb; + static $first_pass = true; + $version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ? $update->current : sprintf("%s–%s", $update->current, $update->locale); $current = false; if ( !isset($update->response) || 'latest' == $update->response ) $current = true; - $submit = __('Update Automatically'); + $submit = __('Update Now'); $form_action = 'update-core.php?action=do-core-upgrade'; $php_version = phpversion(); $mysql_version = $wpdb->db_version(); @@ -35,7 +37,7 @@ function list_core_update( $update ) { } else { if ( $current ) { $message = sprintf(__('You have the latest version of WordPress. You do not need to update. However, if you want to re-install version %s, you can do so automatically or download the package and re-install manually:'), $version_string); - $submit = __('Re-install Automatically'); + $submit = __('Re-install Now'); $form_action = 'update-core.php?action=do-core-reinstall'; } else { $php_compat = version_compare( $php_version, $update->php_version, '>=' ); @@ -63,8 +65,13 @@ function list_core_update( $update ) { echo ''; echo ''; if ( $show_buttons ) { - submit_button( $submit, 'button', 'upgrade', false ); - echo ' ' . $download . ' '; + if ( $first_pass ) { + submit_button( $submit, 'button button-primary', 'upgrade', false ); + $first_pass = false; + } else { + submit_button( $submit, 'button', 'upgrade', false ); + } + echo ' ' . $download . ' '; } if ( 'en_US' != $update->locale ) if ( !isset( $update->dismissed ) || !$update->dismissed ) @@ -75,7 +82,7 @@ function list_core_update( $update ) { if ( 'en_US' != $update->locale && ( !isset($wp_local_package) || $wp_local_package != $update->locale ) ) echo '

'.__('This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.').'

'; else if ( 'en_US' == $update->locale && get_locale() != 'en_US' ) { - echo '

'.sprintf( __('You are about to install WordPress %s in English (US). There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.'), $update->current ).'

'; + echo '

'.sprintf( __('You are about to install WordPress %s in English (US). There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.'), $update->response != 'development' ? $update->current : '' ).'

'; } echo '';