Open tom-honeymoon-production opened 1 week ago
Hi,
Just letting you know that I aknowledged the issue, just haven't had time to respond yet.
This might be a bit complicated, I'm not sure if it's solveable in general without major performance implications for many installations. To check the attachment parent post post status an additiona table join must be made, which is no bueno, as it's a very "expensive" operation to be avoided.
However I think I will add an option for this with a warning instead, so it's not integrated, but rather optional.
Describe the bug
the search results show an image (Attachment to a Post with status draft). When I click on the image a 404 error is shown because the post the image is attached to is not PUBLISH
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An image attached to a not published Post should not be found by the search
Screenshots
If applicable, add screenshots to help explain your problem.
Environment checklist
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context