Fixed auto-deactivate develop
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 25 May 2017 19:32:14 +0000 (15:32 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 25 May 2017 19:32:14 +0000 (15:32 -0400)
index.php
readme.txt

index 6cecbad..e04933b 100644 (file)
--- 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
index 7772ac5..4802a2d 100644 (file)
@@ -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.
+