Make WordPress Core


Ignore:
Timestamp:
11/23/2011 11:28:50 PM (15 years ago)
Author:
nacin
Message:

Hide unrelated maintenance message on update-core when you are running the latest version, and show a link to about.php. see #18467.

File:
1 edited

Legend:

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

    r19267 r19441  
    132132 */
    133133function core_upgrade_preamble() {
    134         global $upgrade_error;
     134        global $upgrade_error, $wp_version;
    135135
    136136        $updates = get_core_updates();
     
    177177        }
    178178        echo '</ul>';
    179         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>';
     179        if ( $updates ) {
     180                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>';
     181        } else {
     182                list( $normalized_version ) = explode( '-', $wp_version );
     183                echo '<p>' . sprintf( __( '<a href="%s">Learn more about WordPress %s</a>.' ), esc_url( admin_url( 'about.php' ) ), $normalized_version ) . '</p>';
     184        }
    180185        dismissed_updates();
    181186
Note: See TracChangeset for help on using the changeset viewer.