WordPress.org

Make WordPress Core

Ticket #22828: miqro-22828.2.diff

File miqro-22828.2.diff, 734 bytes (added by miqrogroove, 17 months ago)
  • wp-admin/includes/update.php

     
    3434        $dismissed = get_site_option( 'dismissed_update_core' ); 
    3535        if ( !is_array( $dismissed ) ) $dismissed = array(); 
    3636        $from_api = get_site_transient( 'update_core' ); 
    37         if ( empty($from_api) ) 
    38                 return false; 
    3937        if ( !isset( $from_api->updates ) || !is_array( $from_api->updates ) ) return false; 
    4038        $updates = $from_api->updates; 
    41         if ( !is_array( $updates ) ) return false; 
    4239        $result = array(); 
    4340        foreach($updates as $update) { 
    4441                if ( array_key_exists( $update->current.'|'.$update->locale, $dismissed ) ) {