alleyinteractive/wp-alleyvate

Suppress Media Item Detail Pages by Default

Closed this issue · 5 comments

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.

dlh01 commented

Related: #4

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.

  • Handle unattached media
  • Handle attached media
  • Remove link to attachment from media modal

FYI: There is some prior art for disabling attachment routing here.