diff --git a/admin/admin-init_rvy.php b/admin/admin-init_rvy.php index 4d25c44..fbaf586 100644 --- a/admin/admin-init_rvy.php +++ b/admin/admin-init_rvy.php @@ -142,7 +142,7 @@ function rvy_admin_init() { || (isset($_REQUEST['action']) && in_array($_REQUEST['action'], ['decline_revision'])) ) { $doaction = (!empty($_REQUEST['action']) && !is_numeric($_REQUEST['action'])) ? sanitize_key($_REQUEST['action']) : sanitize_key($_REQUEST['action2']); - + if (empty($_POST) && in_array($_REQUEST['action'], ['decline_revision'])) { check_admin_referer('decline-revision'); } else { diff --git a/admin/class-list-table_rvy.php b/admin/class-list-table_rvy.php index 84dc5d3..0f0fb37 100644 --- a/admin/class-list-table_rvy.php +++ b/admin/class-list-table_rvy.php @@ -60,7 +60,7 @@ public function __construct($args = []) { } } } - + foreach ($triggered_deletions as $revision_id => $post_id) { if ($revision_id) { wp_delete_post($revision_id, true); diff --git a/admin/history_rvy.php b/admin/history_rvy.php index a538d55..8d0d4dc 100644 --- a/admin/history_rvy.php +++ b/admin/history_rvy.php @@ -55,12 +55,12 @@ function actCompareRevisionsTweakUI() { || (rvy_get_option('revision_restore_require_cap') && !current_user_can('administrator') && !is_super_admin() && !current_user_can('restore_revisions')) ) : ?> - - + input.restore-revision {display:none !important;} + +