// Tell the template we're going to be editing.
$option = 'edit';
+ glmClearShortcodeCache();
+
// Otherwise, the package didn't successfully submit
} else {
break;
case 'update':
+
// Get the original Package Status. Before the update.
$old_package_status = $this->wpdb->get_var(
$this->wpdb->prepare(
// Tell the template the package was updated
$packageUpdated = true;
+ glmClearShortcodeCache();
+
// Otherwise it didn't update, tell the template and let them try again
} else {
$packageError = true;
if ($packageID > 0) {
$this->deleteEntry($packageID, true);
$packageDeleted = true;
+
+ glmClearShortcodeCache();
}
// Look for matching package elements
// Tell the template we're going to be editing.
$option = 'edit';
+ glmClearShortcodeCache();
+
// Otherwise, the package didn't successfully submit
} else {
// Tell the template the package was updated
$packageUpdated = true;
+
// Get the package prepared for editing
$packageInfo = $this->editEntry($packageID);
+ glmClearShortcodeCache();
+
// Otherwise it didn't update, tell the template and let them try again
} else {
$packageError = true;
if ($packageID > 0) {
$this->deleteEntry($packageID, true);
$packageDeleted = true;
+
+ glmClearShortcodeCache();
}
// Look for matching package elements