[wp-trac] [WordPress Trac] #49779: Add a filter that controls the size of the images on the Attachment pages

WordPress Trac noreply at wordpress.org
Thu Mar 10 15:48:40 UTC 2022


#49779: Add a filter that controls the size of the images on the Attachment pages
-------------------------+------------------------------
 Reporter:  pikamander2  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:
 Severity:  major        |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by joedolson):

 Is there any reason you can't resolve this problem via either editing or
 adding an attachments template to your theme?

 The theme's `attachment.php` template file allows you to pass whatever
 size you want for the attachment page; I can't see a reason you'd ever
 need to edit core files for this.

 More details: https://developer.wordpress.org/themes/template-files-
 section/attachment-template-files/

 If there's something special about the scenario that means you can't solve
 this within the theme, please provide those details.

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


More information about the wp-trac mailing list