WordPress.org

Make WordPress Core

Changeset 5987


Ignore:
Timestamp:
08/30/2007 04:25:50 PM (12 years ago)
Author:
westi
Message:

Ensure we always show the current version in the footer if the last update check failed. Fixes #4867 props Viper007Bond

File:
1 edited

Legend:

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

    r5985 r5987  
    55function core_update_footer( $msg ) {
    66    $cur = get_option( 'update_core' );
    7    
    8     if ( ! isset( $cur->response ) )
    9         return $msg;
    107
    118    switch ( $cur->response ) {
     
    1815    break;
    1916
    20 
    2117    case 'latest' :
     18    default :
    2219        return sprintf( '| '.__( 'Version %s' ), $GLOBALS['wp_version'] );
    2320    break;
Note: See TracChangeset for help on using the changeset viewer.