From 4f17ccd8b6bf7fc2ff3f5e5bf86fb56268f66ea1 Mon Sep 17 00:00:00 2001
From: Christian Wach <needle@haystack.co.uk>
Date: Tue, 14 Dec 2021 12:12:42 +0000
Subject: [PATCH] Do not clear Form Action query vars

---
 includes/cfafa-acfe.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/cfafa-acfe.php b/includes/cfafa-acfe.php
index f638a93..0f2072c 100644
--- a/includes/cfafa-acfe.php
+++ b/includes/cfafa-acfe.php
@@ -84,8 +84,8 @@ class CFAFA_ACFE {
 		// Register ACFE Form Actions.
 		add_filter( 'acfe/include_form_actions', [ $this, 'register_form_actions' ], 50 );
 
-		// Add Form Actions Javascript.
-		add_action( 'acfe/form/submit', [ $this, 'form_action_query_vars_clear' ] );
+		// Clear Form Action Query Vars.
+		//add_action( 'acfe/form/submit', [ $this, 'form_action_query_vars_clear' ] );
 
 	}
 
-- 
GitLab