Posts in the Trash drag attachment pages down with them
|Reported by:||markel||Owned by:|
|Cc:||ryan@…, westi, knut@…, dailyrants@…|
If you have an attachment linked to a post, then move the post to the Trash, the attachment page results in a 404.
Steps to reproduce:
- Create a new post with at least one image attached to it (just add it to the post).
- Publish the post.
- Check both the attachment URL (it will be a "child" of the post to which it is attached) and the post URL.
- Move the post to the Trash.
- Try to "View" the attachment either by going through the Media Library or by refreshing the attachment URL. WordPress will display a 404 message.
Deleting the post permanently can cause the attachment permalink to work again, both with the page parent in the slug and without that information in the form http://sitename.com/attachmentname/ .
Change History (9)
- Cc dailyrants@… added