Ticket #22828: miqro-22828.2.diff
| File miqro-22828.2.diff, 734 bytes (added by miqrogroove, 6 months ago) |
|---|
-
wp-admin/includes/update.php
34 34 $dismissed = get_site_option( 'dismissed_update_core' ); 35 35 if ( !is_array( $dismissed ) ) $dismissed = array(); 36 36 $from_api = get_site_transient( 'update_core' ); 37 if ( empty($from_api) )38 return false;39 37 if ( !isset( $from_api->updates ) || !is_array( $from_api->updates ) ) return false; 40 38 $updates = $from_api->updates; 41 if ( !is_array( $updates ) ) return false;42 39 $result = array(); 43 40 foreach($updates as $update) { 44 41 if ( array_key_exists( $update->current.'|'.$update->locale, $dismissed ) ) {