* VERSIONS *************************************************/ /** * Upgrade Versions * * These versions require database upgrades. * Functions with names corresponding to versions are triggered when updating the plugin. * For example, updating from 1.2 to 1.3 with 1.3 in the array executes ctc_upgrade_1_3.
/** * Set defaults after import * * A user may be importing old sample content or site export XML file while using up to date plugin. * This would mean the upgrade routine is not run because version in database is fine. * * Let's at least set defaults on custom fields to help make things smooth. * Later, if necessary, it may be useful to run entire upgrade routine if it is true that that will * not cause destruction if re-run. * * @since 1.0 */ function ctc_after_import() { // Set defaults for event fields that did not always exist ctc_set_events_defaults(); }