From: Steve Sutton Date: Thu, 26 May 2016 21:52:38 +0000 (-0400) Subject: fix error from filters switch to action X-Git-Tag: v2.0.2^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=bf29fc7b3b26f0ed1be9d6d9ff68fd5e82733c89;p=WP-Plugins%2Fglm-member-db.git fix error from filters switch to action --- diff --git a/controllers/front.php b/controllers/front.php index f3e84132..0da60e9a 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -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')); } /** diff --git a/index.php b/index.php index 980a2fbe..c6973e02 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.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 * @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 diff --git a/setup/frontHooks.php b/setup/frontHooks.php index a163d3c2..7c97e41d 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -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 +}