[wp-trac] [WordPress Trac] #57913: Attachment pages need to have an "on" toggle

WordPress Trac noreply at wordpress.org
Tue Mar 14 00:02:11 UTC 2023


#57913: Attachment pages need to have an "on" toggle
-------------------------+------------------------------
 Reporter:  joostdevalk  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by audrasjb):

 Thanks for the ticket, however I believe there is some caveats to address
 in this proposal:

 > On existing sites that toggle should be "on", but setting it to "off"
 should disable the attachment URLs entirely, redirecting existing
 attachment URLs to their parent post

 Attachments do not necessarily have a parent post: unattached medias need
 to be redirected elsewhere. On the homepage?

 Would this change redirect all kind of attachments? Would it force
 redirection over all the `single-attachment-{slug}.php` and the various
 `{MIME-type}.php` templates (like `pdf.php`, `video.php`, `text-
 plain.php`, etc)?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57913#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list