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

git-svn-id: https://develop.svn.wordpress.org/trunk@17618 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2011-04-07 09:56:20 +00:00
parent e849d6437d
commit 5f476a9f03
1 changed files with 3 additions and 3 deletions

View File

@ -280,11 +280,11 @@ function wp_update_themes( ) {
$new_update = new stdClass;
$new_update->last_checked = time( );
$new_update->checked = $checked;
$response = unserialize( $raw_response['body'] );
if ( $response ) {
$new_update->checked = $checked;
if ( false !== $response )
$new_update->response = $response;
}
set_site_transient( 'update_themes', $new_update );
}