Skip to content

Commit

Permalink
Fixes fatal error related to wp_redirect filter
Browse files Browse the repository at this point in the history
Addresses #2165
  • Loading branch information
zackkatz committed Oct 10, 2024
1 parent 552ebd0 commit ed10a05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/extensions/delete-entry/class-delete-entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 =

Expand Down

0 comments on commit ed10a05

Please sign in to comment.