From: Chuck Scott Date: Fri, 8 Jul 2016 18:49:58 +0000 (-0400) Subject: Beat Yoast SEO once again. This time with page titles. X-Git-Tag: v1.2.19^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=472bbf132475384eaa61a38541f1adce4ea586c3;p=WP-Plugins%2Fglm-member-db-events.git Beat Yoast SEO once again. This time with page titles. --- diff --git a/index.php b/index.php index 136e4c4..5783fbd 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Events * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.2.18 + * Version: 1.2.19 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -20,7 +20,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.2.18 + * @version 1.2.19 */ /* @@ -38,7 +38,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.18'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.19'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.0.18'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/setup/frontHooks.php b/setup/frontHooks.php index de47a2a..205dd5a 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -78,10 +78,10 @@ if (strpos(GLM_MEMBERS_PLUGIN_CURRENT_URL, $this->config['settings']['canonical_ global $wpdb; $GLOBALS['glmEventName'] = $wpdb->get_var( "SELECT name FROM ".GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "events WHERE name_slug = '".$GLOBALS['glmDetailSlug']."'" ); - // Set the page title to the event name - add_filter('wp_title', function() { + // Set the page title to the event name - Using low priority so it's the last to set the title! + add_filter('wp_title', function($title) { return $GLOBALS['glmEventName']; - }); + }, 99, 1); } // Add eventslug query var