From 1ac40e97d7ed5fe49632ad37b74362e5f47c17c3 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:47:10 -0500 Subject: [PATCH 1/3] Stable version 4.0.33 --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 2d45a872..63999e87 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: restrict, access, user, privacy, capabilities Requires at least: 5.5 Tested up to: 6.7 Requires PHP: 7.2.5 -Stable tag: 4.0.32 +Stable tag: 4.0.33 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html From 90cec756ebd4552479a3dca24bb105b9cb2f4f4d Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:06:22 -0500 Subject: [PATCH 2/3] Permissions metabox value not saved Fixes #1234 --- classes/PublishPress/Permissions/PostSave.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/classes/PublishPress/Permissions/PostSave.php b/classes/PublishPress/Permissions/PostSave.php index 00405d5e..62efe74f 100644 --- a/classes/PublishPress/Permissions/PostSave.php +++ b/classes/PublishPress/Permissions/PostSave.php @@ -45,15 +45,6 @@ public static function actSaveItem($item_source, $post_id, $post) return; } - global $current_user; - $transient_name = "_saving_post_{$post_id}_{$current_user->ID}"; - - if (get_transient($transient_name)) { - return; - } else { - set_transient($transient_name, true, 5); - } - $saved_items[$post_id] = 1; $is_new = self::isNewPost($post_id, $post); From d94a777625d49a1477970da8129fb6bc7a371c4e Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:12:08 -0500 Subject: [PATCH 3/3] Release 4.0.34 --- press-permit-core.php | 4 ++-- readme.txt | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/press-permit-core.php b/press-permit-core.php index b1e706b6..a8e335f8 100644 --- a/press-permit-core.php +++ b/press-permit-core.php @@ -5,7 +5,7 @@ * Description: Advanced yet accessible content permissions. Give users or groups type-specific roles. Enable or block access for specific posts or terms. * Author: PublishPress * Author URI: https://publishpress.com/ - * Version: 4.0.33 + * Version: 4.0.34 * Text Domain: press-permit-core * Domain Path: /languages/ * Requires at least: 5.5 @@ -202,7 +202,7 @@ function presspermit_load() { return; } - define('PRESSPERMIT_VERSION', '4.0.33'); + define('PRESSPERMIT_VERSION', '4.0.34'); if (!defined('PRESSPERMIT_READ_PUBLIC_CAP')) { define('PRESSPERMIT_READ_PUBLIC_CAP', 'read'); diff --git a/readme.txt b/readme.txt index 63999e87..997e18da 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: restrict, access, user, privacy, capabilities Requires at least: 5.5 Tested up to: 6.7 Requires PHP: 7.2.5 -Stable tag: 4.0.33 +Stable tag: 4.0.34 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -240,6 +240,9 @@ Yes, we use the phrase "publishpress-ppcore-install" to share install links. You == Changelog == += 4.0.34 - 14 Nov 2024 = +* Fixed : Changes to Permissions metaboxes in Post editor were not saved + = 4.0.33 - 13 Nov 2023 = * Fixed: Warning for early execution of load_plugin_textdomain() in WP 6.7 #1227 * Fixed: WP 6.6 - Updating a page caused propagated permissions to be cleared under some configurations