From 00c9a16e3c81a573ac11d416d8cb65226c1d3a52 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Tue, 16 Nov 2021 18:19:37 -0500 Subject: [PATCH] Revisions 3: Exceptions for revision submission don't adjust Edit Posts / Pages listing Fixes #485 Also requires PublishPress Permission fix: https://github.com/publishpress/PublishPress-Permissions/pull/486 --- revisionary_main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/revisionary_main.php b/revisionary_main.php index 750115aa..49a23d89 100644 --- a/revisionary_main.php +++ b/revisionary_main.php @@ -609,7 +609,9 @@ function fltStatusChangeCap($caps, $cap, $user_id, $args) { } // allow PublishPress Permissions to apply 'copy' exceptions - if ($can_copy = apply_filters('revisionary_can_copy', $can_copy, $post_id, 'draft', 'draft-revision', $filter_args)) { + if ($can_copy = apply_filters('revisionary_can_copy', $can_copy, $post_id, 'draft', 'draft-revision', $filter_args) + || apply_filters('revisionary_can_submit', $can_copy, $post_id, 'pending', 'pending-revision', $filter_args) + ) { $caps = ['read']; }