* @package glmMembersDatabase
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.10.14
+ * @version 2.10.15
*/
// Check that we're being called by WordPress.
*
*/
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.14');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.15');
define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.32');
// Check if plugin version is not current in WordPress option and if needed updated it
break;
- // Add the new member
+ // Add the new member
case 'addNew':
$memberData = $this->insertEntry();
$this->memberID = $memberData['fieldData']['id'];
- $slug = $this->updateSlug($this->memberID);
-
- $memberData = $this->editEntry($this->memberID);
- $memberUpdated = true;
- $haveMember = true;
-
- // Also update all member info records with any possible name change
- $sql = "
- UPDATE ".GLM_MEMBERS_PLUGIN_DB_PREFIX."member_info
- SET member_name = '".addslashes($memberData['fieldData']['name'])."'
- WHERE member = $this->memberID
- ;";
- $this->wpdb->query($sql);
-
- $memberName = $memberData['fieldData']['name'];
+ // Set this member as the current one
+ update_option('glmMembersDatabaseMemberID', $this->memberID);
+
+ // Redirect to the Member Dashboard where it will pick up on this member
+ return array(
+ 'status' => $success,
+ 'menuItemRedirect' => 'member',
+ 'modelRedirect' => 'index',
+ 'view' => 'admin/member/memberEdit.html',
+ 'data' => array()
+ );
} else {
$memberUpdateError = true;
(none)
== Changelog ==
+
+= 2.10.15 =
+* When a new member is added the user is now redirected to the member dashboard
+ for the new member rather than requiring the user to search for that member.
+* Commented out call to clear debug notices in plugin support class. This will
+ be followed up by changes headed toward fully removing the old pop-up notice
+ window and replacing that with error log messages.
+
= 2.10.13 =
Hotfix for member 404 pages.