From: Chuck Scott Date: Wed, 15 Jun 2016 19:03:47 +0000 (-0400) Subject: Added add_action for front-end ajax calls with "nopriv" added to the action name... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b0a00b9232520aa5c0e238e1ee1a21c83cf62362;p=WP-Plugins%2Fglm-member-db.git Added add_action for front-end ajax calls with "nopriv" added to the action name so login is not required. --- diff --git a/controllers/admin.php b/controllers/admin.php index cb7b9d71..966b7b1d 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -183,6 +183,14 @@ class glmMembersAdmin extends GlmPluginSupport ) ); + // Add AJAX image upload action - For front-end access (needs "nopriv") + add_action( 'wp_ajax_nopriv_glm_members_admin_ajax', + array( + $this, + 'glmMembersAdminAjax' + ) + ); + // Check the current Git branch and if it's not 'master' then display admin warning $this->getGitBranch(); if (count($this->gitBranch) > 0) { diff --git a/index.php b/index.php index 76f9ad5a..fb03507f 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.1.0 + * Version: 2.1.2 * 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.1.0 + * @version 2.1.2 */ /* @@ -38,7 +38,7 @@ * */ -define('GLM_MEMBERS_PLUGIN_VERSION', '2.1.0'); +define('GLM_MEMBERS_PLUGIN_VERSION', '2.1.2'); define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.9'); // Check if plugin version is not current in WordPress option and if needed updated it