From ecc32280e51348bc060d15fdb150730516381164 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 25 May 2017 15:17:08 -0400 Subject: [PATCH] Now requiring main plugin version 2.9.15 Fixed auto-deactivate call - from changing to index.php --- index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 23ce1b1..913c57c 100644 --- 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 @@ -38,11 +38,11 @@ * 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'); } /* -- 2.17.1