WordPress.org

Make WordPress Core

Ticket #4867: update.patch

File update.patch, 711 bytes (added by Viper007Bond, 7 years ago)

Fall back to just displaying the version number

  • wp-admin/includes/update.php

     
    44 
    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 ) { 
    129        case 'development' : 
     
    1714                return sprintf( '| <strong>'.__( 'Your WordPress %s is out of date. <a href="%s">Please update</a>.' ).'</strong>', $GLOBALS['wp_version'], $cur->url ); 
    1815        break; 
    1916 
    20  
    2117        case 'latest' : 
     18        default : 
    2219                return sprintf( '| '.__( 'Version %s' ), $GLOBALS['wp_version'] ); 
    2320        break; 
    2421        }