WordPress.org

Make WordPress Core

Ticket #8590: 8590.diff

File 8590.diff, 529 bytes (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/update.php

     
    2727        $php_version = phpversion(); 
    2828 
    2929        $current = get_transient( 'update_core' ); 
    30         if ( ! is_object($current) ) 
     30        if ( ! is_object($current) ) { 
    3131                $current = new stdClass; 
     32                $current->updates = array(); 
     33                $current->version_checked = $wp_version; 
     34        } 
    3235 
    3336        $locale = apply_filters( 'core_version_check_locale', get_locale() ); 
    3437