From ed10a0523c36430f2a99446a5b6c1f0d8f600ebb Mon Sep 17 00:00:00 2001 From: Zack Katz Date: Thu, 10 Oct 2024 12:48:49 -0400 Subject: [PATCH] Fixes fatal error related to wp_redirect filter Addresses #2165 --- includes/extensions/delete-entry/class-delete-entry.php | 2 +- readme.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/extensions/delete-entry/class-delete-entry.php b/includes/extensions/delete-entry/class-delete-entry.php index 801ff0fc9a..830aac11a0 100644 --- a/includes/extensions/delete-entry/class-delete-entry.php +++ b/includes/extensions/delete-entry/class-delete-entry.php @@ -423,7 +423,7 @@ public function process_delete() { * @param bool $safe_redirect Whether to use wp_safe_redirect() or not. */ private function _redirect_and_exit( $url, $message = '', $status = '', $safe_redirect = true ) { - if ( ! apply_filters( 'wp_redirect', $url ) ) { + if ( ! apply_filters( 'wp_redirect', $url, 302 ) ) { return; } diff --git a/readme.txt b/readme.txt index 9801230fd5..1e724c5de6 100644 --- a/readme.txt +++ b/readme.txt @@ -25,9 +25,10 @@ Beautifully display your Gravity Forms entries. Learn more on [gravitykit.com](h * Added: `{now}`, `{yesterday}` and `{tomorrow}` relative date merge tags. * Improved: Better handling of multi-file uploads on the Edit Entry screen. +* Improved: The page no longer suddenly scrolls up when adding a field. * Fixed: Entry loading inside a lightbox did not work in some cases when BuddyPress is active. -* Improved: The page no longer suddenly skips when adding a field. * Fixed: Resending notifications from the Entries screen did not work when sending to all entries filtered by approval status. +* Fixed: Conflict with the Wordfence plugin caused a fatal error when redirecting users after deleting an entry. = 2.29 on October 1, 2024 =