Make WordPress Core

Ticket #21838: update-std-class.diff

File update-std-class.diff, 439 bytes (added by wonderboymusic, 14 years ago)
  • wp-admin/includes/update.php

     
    8686                return sprintf( __( 'Version %s' ), $GLOBALS['wp_version'] );
    8787
    8888        $cur = get_preferred_from_update_core();
     89        if ( empty( $cur ) )
     90                $cur = new stdClass;
     91       
    8992        if ( ! isset( $cur->current ) )
    9093                $cur->current = '';
    9194