From 3f9e748d24ee56bd9dc68c97f9bff98a8b12f976 Mon Sep 17 00:00:00 2001 From: Miika Arponen Date: Mon, 25 May 2020 10:38:59 +0300 Subject: [PATCH] Fixed a bug in the Advanced Forms compatibility fix preventing form submissions in certain situations --- CHANGELOG.md | 5 +++++ plugin.php | 2 +- src/External/AdvancedForms.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc82fec..5c62caf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.30.1] - 2020-05-25 + +### Fixed +- A bug in the Advanced Forms compatibility fix preventing form submissions in certain situations. + ## [1.30.0] - 2020-05-22 ### Added diff --git a/plugin.php b/plugin.php index 7fde9dd..bef7250 100644 --- a/plugin.php +++ b/plugin.php @@ -3,7 +3,7 @@ Plugin Name: ACF Codifier Plugin URI: https://github.com/devgeniem/acf-codifier Description: A helper class to make defining ACF field groups and fields easier in the code. -Version: 1.30.0 +Version: 1.30.1 Author: Miika Arponen / Geniem Oy Author URI: https://geniem.fi License: GPL-3.0 diff --git a/src/External/AdvancedForms.php b/src/External/AdvancedForms.php index 62bf49b..4fee661 100644 --- a/src/External/AdvancedForms.php +++ b/src/External/AdvancedForms.php @@ -24,7 +24,7 @@ public function fix_action_priority() { $acf_core_forms_submissions = AF()->classes['core_forms_submissions']; \remove_action( 'init', [ $acf_core_forms_submissions, 'pre_form' ], 10 ); - \add_action( 'init', [ $acf_core_forms_submissions, 'pre_form' ], 9999, 0 ); + \add_action( 'wp-loaded', [ $acf_core_forms_submissions, 'pre_form' ], 9999, 0 ); } } }