Bug (v. 1.1): Cannot remove image or text from a field
-
Hi,
I looks like you are not able to add content to a field and remove it later, even though the field is not required. E.g.
1) Add an image to a image field
2) Save
3) Remove the image
4) SaveThe original image is still there.
Same issues with a text field:
1) Fill out a text field with a string
2) Save
3) Remove the string so the text field is empty
4) SaveThe original string is still there.
I’ve stepped through the code and the culprit seems to be here:
https://github.com/DenisYakimchuk/ACF-Location-Nav-Menu/blob/master/inc/fields_actions.php#L54
If a field is updated with an empty value, update is skipped.
I think the solution is simply to drop the $v != ” check.
Regards,
Anton
- The topic ‘Bug (v. 1.1): Cannot remove image or text from a field’ is closed to new replies.