WordPress.org

Make WordPress Core

Changeset 25820


Ignore:
Timestamp:
10/16/13 23:05:23 (4 years ago)
Author:
nacin
Message:

"Future security updates will be applied automatically." see #22704.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r25816 r25820  
    4747    } else { 
    4848        if ( $current ) { 
    49             $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); 
     49            $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 ); 
    5050            $submit = __('Re-install Now'); 
    5151            $form_action = 'update-core.php?action=do-core-reinstall'; 
     
    146146        echo '<h3>'; 
    147147        _e('You have the latest version of WordPress.'); 
    148         echo '</h3>'; 
    149148 
    150149        if ( wp_http_supports( 'ssl' ) ) { 
     
    158157            $should_auto_update = WP_Automatic_Upgrader::should_auto_update( 'core', $future_minor_update, ABSPATH ); 
    159158            if ( $should_auto_update ) 
    160                 echo '<div class="updated inline"><p>&#10004; &nbsp; This site is set up to install security updates of WordPress automatically. Cool!</p></div>'; 
    161         } 
     159                echo ' ' . __( 'Future security updates will be applied automatically.' ); 
     160        } 
     161        echo '</h3>'; 
    162162    } else { 
    163163        echo '<div class="updated inline"><p>'; 
     
    184184    } 
    185185    echo '</ul>'; 
    186     if ( $updates ) { 
     186    // Don't show the maintenance mode notice when we are only showing a single re-install option. 
     187    if ( $updates && ( count( $updates ) > 1 || $updates[0]->response != 'latest' ) ) { 
    187188        echo '<p>' . __( '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.' ) . '</p>'; 
    188     } else { 
     189    } elseif ( ! $updates ) { 
    189190        list( $normalized_version ) = explode( '-', $wp_version ); 
    190191        echo '<p>' . sprintf( __( '<a href="%s">Learn more about WordPress %s</a>.' ), esc_url( self_admin_url( 'about.php' ) ), $normalized_version ) . '</p>'; 
Note: See TracChangeset for help on using the changeset viewer.