Skip to content

Commit

Permalink
Merge pull request #94 from devgeniem/advanced-forms
Browse files Browse the repository at this point in the history
Fixed a bug in the Advanced Forms compatibility fix preventing form s…
  • Loading branch information
Miika Arponen authored May 25, 2020
2 parents 1039532 + 3f9e748 commit f2b5146
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/External/AdvancedForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
}
Expand Down

0 comments on commit f2b5146

Please sign in to comment.