Beat Yoast SEO once again. This time with page titles.
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 8 Jul 2016 18:47:32 +0000 (14:47 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 8 Jul 2016 18:47:32 +0000 (14:47 -0400)
index.php
setup/frontHooks.php

index 5369975..321840b 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.26
+ * Version: 2.1.27
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -38,7 +38,7 @@
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.1.26');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.1.27');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.11');
 
 // Check if plugin version is not current in WordPress option and if needed updated it
index 1656e57..07ded23 100644 (file)
@@ -148,10 +148,10 @@ if (strpos(GLM_MEMBERS_PLUGIN_CURRENT_URL, $this->config['settings']['canonical_
     global $wpdb;
     $GLOBALS['glmMembName'] = $wpdb->get_var( "SELECT name FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX . "members WHERE member_slug = '".$GLOBALS['glmDetailSlug']."'" );
 
-    // Set the page title to the member name
-    add_filter('wp_title', function() {
+    // Set the page title to the member name - Using low priority so it's the last to set the title!
+    add_filter('wp_title', function($title) {
         return $GLOBALS['glmMembName'];
-    });
+    }, 99, 1);
 }
 
 // Add memberslug query var