Now requiring main plugin version 2.9.15
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 25 May 2017 19:17:08 +0000 (15:17 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 25 May 2017 19:17:08 +0000 (15:17 -0400)
Fixed auto-deactivate call - from changing to index.php

index.php

index 23ce1b1..913c57c 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Events
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.6.40
+ * Version: 1.6.41
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.40');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.41');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.2');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
-define('GLM_MEMBERS_EVENTS_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION', '1.0.58');
+define('GLM_MEMBERS_EVENTS_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION', '2.9.15');
 
 // Check if plugin version is not current in WordPress option and if needed updated it
 if (GLM_MEMBERS_EVENTS_PLUGIN_VERSION != get_option('glmMembersDatabaseEventsPluginVersion')) {
@@ -113,7 +113,7 @@ $plugin_name = 'glm-member-db/index.php';
 $is_active = is_plugin_active($plugin_name);
 if ($is_active != '1') {
     add_action( 'admin_notices', 'glmMembersEventsPluginRequired' );
-    deactivate_plugins('/'.GLM_MEMBERS_EVENTS_PLUGIN_SLUG.'/'.GLM_MEMBERS_EVENTS_PLUGIN_SLUG.'.php');
+    deactivate_plugins('/'.GLM_MEMBERS_EVENTS_PLUGIN_SLUG.'/index.php');
 }
 
 // Check for Minimum DB version for main Member DB
@@ -131,7 +131,7 @@ $glmMembersDatabasePluginVersion = get_option('glmMembersDatabasePluginVersion')
 if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBERS_EVENTS_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION) < 0) {
     define('GLM_MEMBERS_EVENTS_MIN_VERSION_NOTE', "Members DB: $glmMembersDatabasePluginVersion, Events Requires: ".GLM_MEMBERS_EVENTS_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION);
     add_action( 'admin_notices', 'glmMembersPluginEventsMinVerRequired');
-    deactivate_plugins('/'.GLM_MEMBERS_EVENTS_PLUGIN_SLUG.'/'.GLM_MEMBERS_EVENTS_PLUGIN_SLUG.'.php');
+    deactivate_plugins('/'.GLM_MEMBERS_EVENTS_PLUGIN_SLUG.'/index.php');
 }
 
 /*