Fix for member name slug not being generated.
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 1 Nov 2017 18:50:17 +0000 (14:50 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 1 Nov 2017 18:50:17 +0000 (14:50 -0400)
Putting back the updateSlug call for creating the member name slug.

index.php
models/admin/member/memberEdit.php

index 45bffa9..b60e61e 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.10.16
+ * Version: 2.10.17
  * 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.10.15
+ * @version 2.10.17
  */
 
 // Check that we're being called by WordPress.
@@ -44,7 +44,7 @@ if (!defined('ABSPATH')) {
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.16');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.17');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.32');
 
 // Check if plugin version is not current in WordPress option and if needed updated it
index 1338402..2dd37c6 100644 (file)
@@ -246,6 +246,9 @@ class GlmMembersAdmin_member_memberEdit extends GlmDataMembers
 
                     $this->memberID = $memberData['fieldData']['id'];
 
+                    // Update the slug for member
+                    $slug = $this->updateSlug( $this->memberID );
+
                     // Set this member as the current one
                     update_option('glmMembersDatabaseMemberID', $this->memberID);
 
@@ -314,4 +317,4 @@ class GlmMembersAdmin_member_memberEdit extends GlmDataMembers
 
 }
 
-?>
\ No newline at end of file
+?>