update( 'version_dt', AdCommanderTools::version() ); } /** * If the database version doesn't match the current version, run updates. * * @return void */ public static function maybe_update() { if ( ! wp_doing_ajax() && Util::get_dbversion( 'version_dt' ) !== AdCommanderTools::version() ) { self::update(); } } /** * Tasks to run during a version update. * * @return void */ public static function update() { self::set_dbversion(); } }