WordPress.org

Make WordPress Core

Changeset 17618


Ignore:
Timestamp:
04/07/11 09:56:20 (3 years ago)
Author:
dd32
Message:

Prevent update API requests on every load of themes.php when no updates are available. Fixes #16362

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/update.php

    r17231 r17618  
    281281    $new_update = new stdClass; 
    282282    $new_update->last_checked = time( ); 
     283    $new_update->checked = $checked; 
     284 
    283285    $response = unserialize( $raw_response['body'] ); 
    284     if ( $response ) { 
    285         $new_update->checked = $checked; 
     286    if ( false !== $response ) 
    286287        $new_update->response = $response; 
    287     } 
    288288 
    289289    set_site_transient( 'update_themes', $new_update ); 
Note: See TracChangeset for help on using the changeset viewer.