From b2381da668b73fc411f734e7920d12cdc74c9d06 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Sat, 17 Dec 2016 21:54:09 +0800 Subject: [PATCH] Fix form submission --- core/um-form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-form.php b/core/um-form.php index d2dea939..fdc73914 100644 --- a/core/um-form.php +++ b/core/um-form.php @@ -14,7 +14,7 @@ class UM_Form { $this->processing = null; - add_action('init', array(&$this, 'form_init'), 2); + add_action('template_redirect', array(&$this, 'form_init'), 2); add_action('init', array(&$this, 'field_declare'), 10);