fix error from filters switch to action
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 26 May 2016 21:52:38 +0000 (17:52 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 26 May 2016 21:52:38 +0000 (17:52 -0400)
controllers/front.php
index.php
setup/frontHooks.php

index f3e8413..0da60e9 100644 (file)
@@ -86,7 +86,7 @@ class glmMembersFront extends GlmPluginSupport
 
         // Add filters for use anywhere else (apply_filter). Will have to add this to index.php eventually
         add_filter('glmMembersFrontScriptsFilter',array($this,'glmMembersFrontScripts'));
-        add_filter('glmMembersFrontCSSFilter',array($this,'glmMembersFrontCSS'));
+        add_action('glmMembersFrontCSSFilter',array($this,'glmMembersFrontCSS'));
     }
 
     /**
index 980a2fb..c6973e0 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.0.1
+ * Version: 2.0.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.0.0
+ * @version 2.0.2
  */
 
 /*
@@ -38,7 +38,7 @@
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.0.0');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.0.2');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.7');
 
 // Check if plugin version is not current in WordPress option and if needed updated it
index a163d3c..7c97e41 100644 (file)
@@ -124,7 +124,7 @@ function glm_members_only_template( $template ) {
     $membersOnlyPage = get_option(GLM_MEMBERS_PLUGIN_OPTION_MEMBERS_ONLY_ID);
     $newTemplate = locate_template( $templateName );
     if ( (is_in_tree($membersOnlyPage)) && ($newTemplate != "") ) { // if in same tree as the members page for this site
-        apply_filters('glmMembersFrontCSSFilter');
+        do_action('glmMembersFrontCSSFilter');
         return $newTemplate;
         /* //Uncomment this if you want every child page of the members only page to be given the members only template
          * // (i.e. changed in the database) and not just using them on the front-end
@@ -139,4 +139,4 @@ function glm_members_only_template( $template ) {
         // Not in tree of $membersOnlyPage;
     }
     return $template;
-}
\ No newline at end of file
+}