Also fixed errant display that a member contact is editing a "multi-member" package, which they can't do.
* Plugin Name: GLM Members Database Packaging
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 1.1.8
+ * Version: 1.1.9
* Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersDatabasePackagingAddOn
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.1.8
+ * @version 1.1.9
*/
/*
* so that we're sure the other add-ons see an up to date
* version from this plugin.
*/
-define('GLM_MEMBERS_PACKAGING_PLUGIN_VERSION', '1.1.8');
+define('GLM_MEMBERS_PACKAGING_PLUGIN_VERSION', '1.1.9');
define('GLM_MEMBERS_PACKAGING_PLUGIN_DB_VERSION', '1.1.2');
// This is the minimum version of the GLM Members DB plugin require for this plugin.
// If the package inserted successfully
if ($packageInfo && $packageInfo['status']) {
+ // Update the package title slug
+ $this->updateSlug($packageInfo['fieldData']['id']);
+
// Get the new package ID
$packageID = $packageInfo['fieldData']['id'];
// If it updated successfully
if ($packageInfo && $packageInfo['status']) {
+ // Update the package title slug
+ $this->updateSlug($packageID);
+
// Get the package data again prepared for editing
$packages = $this->editEntry($packageID);
global $wpdb;
$GLOBALS['glmPackageName'] = $wpdb->get_var( "SELECT title FROM ".GLM_MEMBERS_PACKAGING_PLUGIN_DB_PREFIX . "packages WHERE package_slug = '".$GLOBALS['glmDetailSlug']."'" );
+<<<<<<< Updated upstream
// 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['glmPackageName'];
}, 99, 1);
+=======
+ // Set the page title to the event name
+ add_filter('wp_title', function() {
+ return $GLOBALS['glmPackageName'];
+ });
+>>>>>>> Stashed changes
}
// Add package slug query var
{if $option == 'edit'}
- <h2>Edit Multi-{$terms.term_member_cap} Package</h2>
+ {if $lockedToMember}
+ <h2>Edit Package</h2>
+ {else}
+ <h2>Edit Multi-{$terms.term_member_cap} Package</h2>
+ {/if}
<a id="deletePackageButton" class="button button-primary glm-button glm-right">Delete this Package</a>
<div id="deletePackageDialog" class="glm-dialog-box" title="Delete Package">