[wp-trac] [WordPress Trac] #34477: Pass the named image size to the filter in `wp_get_attachment_image_sizes()`
WordPress Trac
noreply at wordpress.org
Thu Oct 29 03:47:38 UTC 2015
#34477: Pass the named image size to the filter in
`wp_get_attachment_image_sizes()`
--------------------------+-----------------------
Reporter: joemcgill | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Media | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------
Prior to #34430, themes could filter the `sizes` attribute based on the
named size (e.g. medium, post-thumbnail, etc). This ability was broken in
[changeset:35412] because the named sizes are converted to width/height
arrays before being passed to `wp_get_attachment_image_sizes()`.
We already have the ability within `wp_get_attachment_image_sizes()` to
convert a named size into the size array so we should pass the named size
when possible.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34477>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list