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

index 01938b9..597e7f7 100644 (file)
--- a/index.php
+++ b/index.php
@@ -99,7 +99,7 @@ $is_active = is_plugin_active($plugin_name);
 // If it's not active, then warn user and deactivate this add-on plugin
 if ($is_active != '1') {
     add_action( 'admin_notices', 'glmMembersPluginRequired' );
-    deactivate_plugins('/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'.php');
+    deactivate_plugins('/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'/index.php');
 }
 
 // Function to generate message regarding main GLM Member DB plugin version is not receint enought to run this add-on
@@ -120,7 +120,7 @@ function glmMembersContactsMembersMinVerRequired() {
 $glmMembersDatabasePluginVersion = get_option('glmMembersDatabasePluginVersion');
 if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBERS_CONTACTS_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION) < 0) {
     add_action( 'admin_notices', 'glmMembersContactsMembersMinVerRequired');
-    deactivate_plugins('/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'.php');
+    deactivate_plugins('/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'/index.php');
 }
 
 /*
index 9b4902b..3fe58d2 100644 (file)
@@ -25,3 +25,10 @@ e.g.
 1. Activate the plugin through the 'Plugins' menu in WordPress
 
 
+
+== Changelog ==
+
+= 1.0.22 =
+
+* Fixed problem with automatic deactivation due to change in index file name from a while ago.
+