Make WordPress Core

Ticket #16362: 16362.diff

File 16362.diff, 462 bytes (added by dd32, 13 years ago)
  • wp-includes/update.php

     
    281281        $new_update = new stdClass;
    282282        $new_update->last_checked = time( );
    283283        $response = unserialize( $raw_response['body'] );
    284         if ( $response ) {
     284
     285        if ( is_array($response) ) {
    285286                $new_update->checked = $checked;
    286287                $new_update->response = $response;
    287288        }