From 9b4e0c241dcf12c83b6d4570f0e8fc7fb6f07c6f Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 25 May 2017 15:32:14 -0400 Subject: [PATCH] Fixed auto-deactivate --- index.php | 18 +----------------- readme.txt | 6 ++++++ 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/index.php b/index.php index 6cecbad..e04933b 100644 --- a/index.php +++ b/index.php @@ -130,7 +130,7 @@ $glmMembersDatabasePluginVersion = get_option('glmMembersDatabasePluginVersion') if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION) < 0) { define('GLM_MEMBER_EVENTMANAGEMENT_MIN_VERSION_NOTE', "Members DB: $glmMembersDatabasePluginVersion, Event Management Requires: ".GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION); add_action( 'admin_notices', 'glmMemberEventManagementMinVerRequired'); - deactivate_plugins('/'.GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_SLUG.'/'.GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_SLUG.'.php'); + deactivate_plugins('/'.GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_SLUG.'/index.php'); } /* @@ -181,22 +181,6 @@ function glmMemberEventManagementRegisterAddOn($addOns) { } add_filter('glm-member-db-register-addon','glmMemberEventManagementRegisterAddOn', 10, 1); -/* - * Plugin Update Support - uses Gaslight Media update server - */ -/* Not functional yet - Need to resolve JavaScript conflicts with this feature in other plugins -require GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_LIB_PATH.'/opentools-update-checker/opentools-update-checker.php'; -${GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_PREFIX."updateChecker"} = new OpenToolsPluginUpdateChecker( - 'http://www.gaslightmedia.com/update_server/?action=get_metadata&slug='.GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_SLUG, - __FILE__, - GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_SLUG -); - -${GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_PREFIX."updateChecker"}->declareCredentials(array( - 'license_key' => __('License Key:') -)); -*/ - /* * * Activate and Deactivate hooks diff --git a/readme.txt b/readme.txt index 7772ac5..4802a2d 100644 --- a/readme.txt +++ b/readme.txt @@ -25,3 +25,9 @@ e.g. 1. Activate the plugin through the 'Plugins' menu in WordPress +== Changelog == + += 0.0.2 = + +* Fixed problem with automatic deactivation due to change in index file name from a while ago. + -- 2.17.1