Added add_action for front-end ajax calls with "nopriv" added to the action name...
authorChuck Scott <cscott@gaslightmedia.com>
Wed, 15 Jun 2016 19:03:47 +0000 (15:03 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 16 Jun 2016 19:43:00 +0000 (15:43 -0400)
controllers/admin.php
index.php

index cb7b9d7..966b7b1 100644 (file)
@@ -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) {
index 76f9ad5..fb03507 100644 (file)
--- 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 <cscott@gaslightmedia.com>
  * @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