Fixed problem with auto-deactivate - from when we changed to using index.php
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 25 May 2017 19:12:47 +0000 (15:12 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 25 May 2017 19:12:47 +0000 (15:12 -0400)
index.php

index 7cd0870..69f3fa7 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Packaging
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.2.11
+ * Version: 1.2.12
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -37,7 +37,7 @@
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_PACKAGING_PLUGIN_VERSION', '1.2.11');
+define('GLM_MEMBERS_PACKAGING_PLUGIN_VERSION', '1.2.12');
 define('GLM_MEMBERS_PACKAGING_PLUGIN_DB_VERSION', '1.1.6');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
@@ -107,7 +107,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', 'glmMembersPackagingPluginRequired' );
-    deactivate_plugins('/'.GLM_MEMBERS_PACKAGING_PLUGIN_SLUG.'/'.GLM_MEMBERS_PACKAGING_PLUGIN_SLUG.'.php');
+    deactivate_plugins('/'.GLM_MEMBERS_PACKAGING_PLUGIN_SLUG.'/index.php');
 }
 
 // Function to generate message regarding main GLM Member DB plugin version is not recent enough to run this add-on
@@ -129,7 +129,7 @@ $glmMembersDatabasePluginVersion = get_option('glmMembersDatabasePluginVersion')
 if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBERS_PACKAGING_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION) < 0) {
     define('GLM_MEMBERS_PACKAGING_MIN_VERSION_NOTE', "Members DB: $glmMembersDatabasePluginVersion, Packaging Requires: ".GLM_MEMBERS_PACKAGING_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION);
     add_action( 'admin_notices', 'glmMembersPluginMinVerRequired');
-    deactivate_plugins('/'.GLM_MEMBERS_PACKAGING_PLUGIN_SLUG.'/'.GLM_MEMBERS_PACKAGING_PLUGIN_SLUG.'.php');
+    deactivate_plugins('/'.GLM_MEMBERS_PACKAGING_PLUGIN_SLUG.'/index.php');
 }
 
 /*