From 55b0b79179227ee491709fa06f5cd433444bdcad Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 16 Oct 2013 23:06:09 +0000 Subject: [PATCH] "Future security updates will be applied automatically." see #22704. Built from https://develop.svn.wordpress.org/trunk@25820 git-svn-id: http://core.svn.wordpress.org/trunk@25732 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update-core.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index f681e72d2d..475da6ae75 100644 --- a/wp-admin/update-core.php +++ b/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 '

'; _e('You have the latest version of WordPress.'); - echo '

'; if ( wp_http_supports( 'ssl' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; @@ -157,8 +156,9 @@ function core_upgrade_preamble() { ); $should_auto_update = WP_Automatic_Upgrader::should_auto_update( 'core', $future_minor_update, ABSPATH ); if ( $should_auto_update ) - echo '

✔   This site is set up to install security updates of WordPress automatically. Cool!

'; + echo ' ' . __( 'Future security updates will be applied automatically.' ); } + echo ''; } else { echo '

'; _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 ) . '

'; }