From c9619d01bd1412d04ebddbe46d94ae1c75aafe17 Mon Sep 17 00:00:00 2001 From: Saif Sultan Date: Thu, 23 Jan 2025 09:21:39 +0530 Subject: [PATCH] `gw-cache-buster.php`: Fixed an issue with Cache Buster and Expired Forms. --- gravity-forms/gw-cache-buster.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/gravity-forms/gw-cache-buster.php b/gravity-forms/gw-cache-buster.php index 76a96d36e..8ea552104 100644 --- a/gravity-forms/gw-cache-buster.php +++ b/gravity-forms/gw-cache-buster.php @@ -262,15 +262,18 @@ public function get_cachebuster_markup( $markup, $atts, $content ) { // We probably don't need this since everything else should already be loaded by this point but since // GF is using it as their standard for triggering the `gform_post_render` event, I figured we should follow suit. gform.initializeOnLoaded( function() { - // Form has been rendered. Trigger post render to initialize scripts. + // Form has been rendered. Trigger post render to initialize scripts if form is not restricted (expired). } ); } );