Suppress Media Item Detail Pages by Default
Closed this issue · 5 comments
kevinfodness commented
It is rarely the case that we want an attachment to have its own detail page publicly accessible, so this functionality should be turned off by default.
kevinfodness commented
The difference between this and #4 is that this will prevent the URLs from existing at all. We'll need to collectively determine which route we want to go (or, perhaps, have an opinionated default but allow opting in to the other method).
dlh01 commented
Folks can also contribute to https://core.trac.wordpress.org/ticket/57913 to get more support for controlling attachment pages into core.
kevinfodness commented
- Handle unattached media
- Handle attached media
- Remove link to attachment from media modal
renatonascalves commented
FYI: There is some prior art for disabling attachment routing here.