AdvancedCustomFields / AdvancedCustomFields/acf
Image field doesn't reset itself when attachment is deleted from media library
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
When image selected via image field is deleted from media library this field appears to be empty but keeps the original value even after post update.
Expected bahavior:
Preferably display some kind of error message and allow user to remove the non-existent image. Alternatively display empty field but delete the original value when post is updated.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by selecting an image in an image field, deleting it from the media library, and updating the post. Trace the image field and post-update handling to see why the deleted attachment value remains. Done means the field reports or clears the missing image and the post no longer retains its original value after update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, content
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100