diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index f681e72d2d..475da6ae75 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -46,7 +46,7 @@ function list_core_update( $update ) { $download = __('Download nightly build'); } 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); + $message = sprintf( __( 'If you need to re-install version %s, you can do so here or download the package and re-install manually:' ), $version_string ); $submit = __('Re-install Now'); $form_action = 'update-core.php?action=do-core-reinstall'; } else { @@ -145,7 +145,6 @@ function core_upgrade_preamble() { if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) { echo '
✔ This site is set up to install security updates of WordPress automatically. Cool!
'; _e('Important: before updating, please back up your database and files. For help with updates, visit the Updating WordPress Codex page.'); @@ -183,9 +183,10 @@ function core_upgrade_preamble() { echo ''; } echo ''; - if ( $updates ) { + // Don't show the maintenance mode notice when we are only showing a single re-install option. + if ( $updates && ( count( $updates ) > 1 || $updates[0]->response != 'latest' ) ) { echo '
' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ) . '
'; - } else { + } elseif ( ! $updates ) { list( $normalized_version ) = explode( '-', $wp_version ); echo '' . sprintf( __( 'Learn more about WordPress %s.' ), esc_url( self_admin_url( 'about.php' ) ), $normalized_version ) . '
'; }