From c9cd0a36a3f31aad87af4450442a13eaa20e4476 Mon Sep 17 00:00:00 2001 From: Saif Sultan Date: Thu, 31 Jul 2025 11:37:06 +0530 Subject: [PATCH 1/2] `gw-cache-buster.php`: Fixed an issue with Cache Buster causing conflict with GP Entry Blocks on editing entries. --- gravity-forms/gw-cache-buster.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gravity-forms/gw-cache-buster.php b/gravity-forms/gw-cache-buster.php index b389e72c9..fa0b297e3 100644 --- a/gravity-forms/gw-cache-buster.php +++ b/gravity-forms/gw-cache-buster.php @@ -9,7 +9,7 @@ * Plugin URI: https://gravitywiz.com/cache-busting-with-gravity-forms/ * Description: Bypass your website cache when loading a Gravity Forms form. * Author: Gravity Wiz - * Version: 0.6.5 + * Version: 0.6.6 * Author URI: https://gravitywiz.com */ class GW_Cache_Buster { @@ -104,8 +104,8 @@ public function shortcode( $markup, $attributes, $content ) { } public function form_filter( $markup, $form ) { - // Prevent recursion. - if ( rgar( $GLOBALS, 'processing' ) ) { + // Prevent recursion, and ensure we're not editing an entry via GP Entry Blocks. + if ( rgar( $GLOBALS, 'processing' ) || rgget( 'edit_entry' ) ) { return $markup; } From 02fc59ee35fbaa372f491b81c6e36014517e03ce Mon Sep 17 00:00:00 2001 From: Saif Sultan Date: Thu, 31 Jul 2025 19:17:02 +0530 Subject: [PATCH 2/2] `gw-cache-buster.php`: Fixed an issue with Cache Buster causing conflict with GP Entry Blocks on editing entries. --- gravity-forms/gw-cache-buster.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity-forms/gw-cache-buster.php b/gravity-forms/gw-cache-buster.php index fa0b297e3..533e5401b 100644 --- a/gravity-forms/gw-cache-buster.php +++ b/gravity-forms/gw-cache-buster.php @@ -105,7 +105,7 @@ public function shortcode( $markup, $attributes, $content ) { public function form_filter( $markup, $form ) { // Prevent recursion, and ensure we're not editing an entry via GP Entry Blocks. - if ( rgar( $GLOBALS, 'processing' ) || rgget( 'edit_entry' ) ) { + if ( rgar( $GLOBALS, 'processing' ) || ( function_exists( 'gp_entry_blocks' ) && gp_entry_blocks()->block_edit_form->is_editing_entry( $form['id'] ) ) ) { return $markup; }