Tribe__Events__Updater::do_updates()
Source
File: src/Tribe/Updater.php
public function do_updates() {
$this->clear_option_caches();
$updates = $this->get_updates();
uksort( $updates, 'version_compare' );
try {
foreach ( $updates as $version => $callback ) {
if ( ! $this->is_new_install() && version_compare( $version, $this->current_version, '<=' ) && $this->is_version_in_db_less_than( $version ) ) {
call_user_func( $callback );
}
}
foreach ( $this->constant_updates() as $callback ) {
call_user_func( $callback );
}
$this->update_version_option( $this->current_version );
} catch ( Exception $e ) {
// fail silently, but it should try again next time
}
}