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

WordPress Trac noreply at wordpress.org
Wed May 3 15:53:16 UTC 2023


#57913: Attachment pages need to have an "on" toggle
----------------------------------------------+---------------------
 Reporter:  joostdevalk                       |       Owner:  (none)
     Type:  enhancement                       |      Status:  new
 Priority:  normal                            |   Milestone:  6.3
Component:  Media                             |     Version:
 Severity:  normal                            |  Resolution:
 Keywords:  2nd-opinion has-patch needs-docs  |     Focuses:
----------------------------------------------+---------------------

Comment (by antpb):

 In the recent Media meeting we discussed this issue and paths forward.
 While I agree with the intent of using the template hierarchy to determine
 if folks are using attachement pages, it assumes a bit too much
 considering many can do things like have conditional checks for an
 attachment in their single.php file which would cause a breaking change if
 we made any adjustment to attachements. They would then need to build an
 attachment.php file to adapt.

 If we keep the scope of this issue focused on adding an
 add_theme_support() we could later change that default with more
 communication to potentially impacted sites. This gives us a middle ground
 to move toward the future state we all want and potentially even allows us
 to explore using the theme hierarchy to determine if enabled/disabled.

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


More information about the wp-trac mailing list