[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 16:35:34 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: reporter-feedback | Focuses: template
-------------------------------+------------------------------
Comment (by pikamander2):
I'm sure that it's also possible to edit the attachment file directly, but
adding a filter here would create a very simple, straightforward way to
edit the image sizes that's in line with many of WordPress's other
filters.
A common use-case is that somebody downloads a theme, generates a child
theme for it, and then makes a few simple edits to the child theme's
functions.php without ever needing to dig into other files. This also
allows them to keep their custom code consolidated in one easy place for
easier access/review later on. Not everyone's looking for a total theme
overhaul with customized template files.
So while it may not be strictly necessary, I do think that it would
beneficial for the sake of ease-of-use.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49779#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list