From: Steve Sutton Date: Mon, 6 Aug 2018 17:44:20 +0000 (-0400) Subject: Update case for lock to member to edit their profile X-Git-Tag: v2.10.36^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9538b08678f5dcfd13ab6a00f3718e3159d74202;p=WP-Plugins%2Fglm-member-db.git Update case for lock to member to edit their profile Need only check on edit only contact here. --- diff --git a/index.php b/index.php index 07988925..660b2803 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 2.10.35 + * Version: 2.10.36 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabase * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 2.10.35 + * @version 2.10.36 */ $GLOBALS['glmAssociateMemTracker'] = memory_get_usage(); @@ -47,7 +47,7 @@ if (!defined('ABSPATH')) { * */ -define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.35'); +define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.36'); define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.37'); // Check if plugin version is not current in WordPress option and if needed updated it diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 61e13761..2886dbdc 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -171,7 +171,7 @@ if ( isset( $config ) && isset( $config['settings'] ) && $config['settings']['en $enable_contact_edit_only = $config['settings']['enable_contact_edit_only']; // Add member widgets - if ( !$enable_contact_edit_only && !$lockedToMember ) { + if ( !$enable_contact_edit_only ) { add_filter( 'glm-member-db-dashboard-member-widgets', function ( $member = null ) {