Gravity Forms GFAPI::submit_form bug
There is a bug with the Gravity Forms GFAPI::submit_form
method when the $_POST
variable contains any existing values that match what you pass to GFAPI::submit_form
.
Because GFAPI::submit_form internally uses array_merge_recursive
, any existing values in the $_POST
variable will be added to any values that exist in the second parameter that you pass to GFAPI::submit_form
.
This bug appears in the latest version of Gravity Forms 2.4.20.5 and in the latest 2.5 beta
Example: