Skip to content

Commit 02fc59e

Browse files
committed
gw-cache-buster.php: Fixed an issue with Cache Buster causing conflict with GP Entry Blocks on editing entries.
1 parent c9cd0a3 commit 02fc59e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-cache-buster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function shortcode( $markup, $attributes, $content ) {
105105

106106
public function form_filter( $markup, $form ) {
107107
// Prevent recursion, and ensure we're not editing an entry via GP Entry Blocks.
108-
if ( rgar( $GLOBALS, 'processing' ) || rgget( 'edit_entry' ) ) {
108+
if ( rgar( $GLOBALS, 'processing' ) || ( function_exists( 'gp_entry_blocks' ) && gp_entry_blocks()->block_edit_form->is_editing_entry( $form['id'] ) ) ) {
109109
return $markup;
110110
}
111111

0 commit comments

Comments
 (0)