From 92d94fca348509851323d2c863dd8cd5547a04df Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 25 May 2017 15:30:16 -0400 Subject: [PATCH] Fixed auto-deactivate --- index.php | 4 ++-- readme.txt | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 01938b9..597e7f7 100644 --- 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'); } /* diff --git a/readme.txt b/readme.txt index 9b4902b..3fe58d2 100644 --- a/readme.txt +++ b/readme.txt @@ -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. + -- 2.17.1