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

index 169a5f9..48fb797 100644 (file)
--- a/index.php
+++ b/index.php
@@ -130,7 +130,7 @@ $glmMembersDatabasePluginVersion = get_option('glmMembersDatabasePluginVersion')
 if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBERS_NEARME_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION) < 0) {
     define('GLM_MEMBERS_NEARME_MIN_VERSION_NOTE', "Members DB: $glmMembersDatabasePluginVersion, NearMe Requires: ".GLM_MEMBERS_NEARME_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION);
     add_action( 'admin_notices', 'glmMembersNearMeMinVerRequired');
-    deactivate_plugins('/'.GLM_MEMBERS_NEARME_PLUGIN_SLUG.'/'.GLM_MEMBERS_NEARME_PLUGIN_SLUG.'.php');
+    deactivate_plugins('/'.GLM_MEMBERS_NEARME_PLUGIN_SLUG.'/index.php');
 }
 
 /*
index 4d6e1ff..e0ba2b9 100644 (file)
@@ -24,4 +24,10 @@ e.g.
 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
 1. Activate the plugin through the 'Plugins' menu in WordPress
 
+== Changelog ==
+
+= 0.1.1 =
+
+* Fixed problem with automatic deactivation due to change in index file name from a while ago.
+