Breaks WPForms checkboxes
-
Hello.
The plugin as it is breaks the wpforms checkbox component. To reproduce you can create a blank form and add the checkbox. Then submit the form by selecting values. Your first selected item will NOT be selected. At that point it’s possible to reproduce the issue by simply editing the form in admin. First save doesn’t even show the “form has been updated successfully” dialog upon saving.
Had to find the reason because we needed the form to work together with this plugin. The issue is (at least currently) on line 45 of
compatibility/wpforms-lite.php
. There’s a missing =, without which the first index (namely, 0) evaluates to true, because it’s only logical for PHP to evaluate0 == 'any random string'
to true.For now we changed the condition ourselves on the server, but would be great to have it fixed upstream so the next update doesn’t break it again.
- You must be logged in to reply to this topic.