
When creating a new post, I add an image and the filter correctly marks that image as “Used.”
If I later edit the post (before it is published) and replace the image, the originally selected image remains marked as “Used” in the media library.
Logically, the first image should return to the “Unused” state since it is no longer part of the post. However, the filter does not update.
Expected Behavior:
When an image is removed or replaced in an unpublished post, it should automatically revert to “Unused.”
Actual Behavior:
The initial image stays marked as “Used”, even though it is no longer included in the post.
Impact:
The “Used/Unused” filter becomes unreliable because it does not reflect the true usage status of images. This creates confusion, especially when managing a large number of assets.