Tribe__Updater::do_updates()
Run Updates for a Plugin
Source
File: src/Tribe/Updater.php
public function do_updates() {
$this->clear_option_caches();
$updates = $this->get_update_callbacks();
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->get_constant_update_callbacks() 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
}
}
Changelog
| Version | Description |
|---|---|
| 4.9.4 | Introduced. |