Prevent update API requests on every load of themes.php when no updates are available. Fixes #16362
git-svn-id: http://svn.automattic.com/wordpress/trunk@17618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
efa709d1b5
commit
197e081e19
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue