File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 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.1
12+ * Version: 0.6.2
1313 * Author URI: https://gravitywiz.com
1414 */
1515class GW_Cache_Buster {
@@ -301,6 +301,14 @@ public function ajax_get_form() {
301301 return rgar ( $ _REQUEST , 'form_theme ' ) ?: $ slug ;
302302 }, 10 , 2 );
303303
304+ add_filter ( 'gpmpn_default_page_ ' . $ form_id , function ( $ page ) {
305+ if ( rgars ( $ _REQUEST , 'atts/page ' ) && rgget ( 'gpmpn_page ' ) ) {
306+ return rgget ( 'gpmpn_page ' );
307+ }
308+
309+ return rgars ( $ _REQUEST , 'atts/page ' , $ page );
310+ } );
311+
304312 $ atts = rgpost ( 'atts ' );
305313
306314 // GF expects an associative array for field values. Parse them before passing it on.
You can’t perform that action at this time.
0 commit comments