Skip to content

Commit 36cc23d

Browse files
committed
gw-cache-buster.php: Fixed regression where cache buster would be enabled on every form.
1 parent cc84454 commit 36cc23d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gravity-forms/gw-cache-buster.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin URI: https://gravitywiz.com/cache-busting-with-gravity-forms/
1010
* Description: Bypass your website cache when loading a Gravity Forms form.
1111
* Author: Gravity Wiz
12-
* Version: 0.6.2
12+
* Version: 0.6.3
1313
* Author URI: https://gravitywiz.com
1414
*/
1515
class GW_Cache_Buster {
@@ -112,7 +112,7 @@ public function form_filter( $markup, $form ) {
112112
$form_args = rgar( $this->_form_args, $form['id'] );
113113
$atts = array(
114114
'id' => $form['id'],
115-
'cachebuster' => true,
115+
'cachebuster' => rgar( $form_args, 'cachebuster' ),
116116
'title' => $form_args['display_title'],
117117
'description' => $form_args['display_description'],
118118
'field_values' => $form_args['field_values'],

0 commit comments

Comments
 (0)