AdvancedCustomFields / acf

Advanced Custom Fields
http://advancedcustomfields.com/
823 stars 168 forks source link

Front-end form submits itself when closing the wordpress link-edit dialogue #907

Open montrealks opened 1 month ago

montrealks commented 1 month ago

Describe the bug Front-end form - Pressing the update button in the Insert/edit link dialogue attempts to submit the form.

To Reproduce Steps to reproduce the behavior:

  1. Ensure that the form is new_post and post_content field is true
  2. Add a URL to the post content field
  3. Click to edit the URL, open the Insert/edit link dialogue
  4. Press update button in the dialogue window
  5. Now the form itself will try to submit

Expected behavior Updating the link details in the edit link dialogue triggers the acf form to attempt to submit itself

Code acf_form(array( 'post_id' => 'new_post', 'return' => add_query_arg('saved', '1'), 'submit_value' => 'Create Post', 'field_groups' => false, 'form' => false, 'post_title' => true, 'post_content' => true, ));

Version Information: