/** * Verifies the EE addons' database is up-to-date and records that we've done it on * EEM_Base::$_db_verification_level * @param $wpdb_method * @param $arguments_to_provide * @return string */ private function _verify_addons_db($wpdb_method, $arguments_to_provide) { /** @type WPDB $wpdb */ global $wpdb; //ok remember that we've already attempted fixing the addons dbs, in case the problem persists EEM_Base::$_db_verification_level = EEM_Base::db_verified_addons; $error_message = sprintf(__('WPDB AGAIN: Error "%1$s" while running the same method and arguments as before. Automatically attempting to fix EE Addons DB', 'event_espresso'), $wpdb->last_error, $wpdb_method, json_encode($arguments_to_provide)); EE_System::instance()->initialize_addons(); return $error_message; }