wordpress/wp-content/plugins/cms-tree-page-view/functions.php
/**
 * when plugins are loaded, check if current plugin version is same as stored
 * if not = it's an upgrade. right?
 */
when plugins are loaded, check if current plugin version is same as stored
if not = it's an upgrade.
when plugins are loaded check if current plugin version is same as stored if not = it ' s an upgrade .
function cms_tpv_plugins_loaded($a) {
	$installed_version = get_option('cms_tpv_version', 0);
	if ($installed_version != CMS_TPV_VERSION) {
		update_option('cms_tpv_version', CMS_TPV_VERSION);
		update_option('cms_tpv_show_annoying_little_box', 1);
		update_option('cms_tpv_show_promo', 1);
		cms_tvp_setup_caps();
	}
}
function cms_tpv_plugins_loaded ( $ a ) { $ installed_version = get_option ( 'cms_tpv_version' , 0 ) ; if ( $ installed_version != CMS_TPV_VERSION ) { update_option ( 'cms_tpv_version' , CMS_TPV_VERSION ) ; update_option ( 'cms_tpv_show_annoying_little_box' , 1 ) ; update_option ( 'cms_tpv_show_promo' , 1 ) ; cms_tvp_setup_caps ( ) ; } }
when plugins are loaded, check if current plugin version is same as stored
 if not = it's an upgrade.
when plugins are loaded check if current plugin version is same as stored if not = it ' s an upgrade .
//echo "installed_version in options table: $installed_version"; //echo "<br>version according to this file" . CMS_TPV_VERSION; // new version! // upgrade stored version to current version // show that annoying litte box again // setup caps/persmissions