+ set_site_transient( 'update_core', $updates );
+
+ if ( ! empty( $body['ttl'] ) ) {
+ $ttl = (int) $body['ttl'];
+ if ( $ttl && ( time() + $ttl < wp_next_scheduled( 'wp_version_check' ) ) ) {
+ // Queue an event to re-run the update check in $ttl seconds.
+ wp_schedule_single_event( time() + $ttl, 'wp_version_check' );
+ }
+ }
+
+ // Trigger a background updates check if running non-interactively, and we weren't called from the update handler.
+ if ( defined( 'DOING_CRON' ) && DOING_CRON && ! doing_action( 'wp_maybe_auto_update' ) ) {
+ do_action( 'wp_maybe_auto_update' );
+ }