[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:55:26 UTC 2015
#34477: Pass the named image size to the filter in
`wp_get_attachment_image_sizes()`
--------------------------+-----------------------
Reporter: joemcgill | Owner: azaozz
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------
Changes (by joemcgill):
* owner: => azaozz
* status: new => assigned
Comment:
[attachment:34477.patch] Adds the test
`Tests_Media::test_wp_get_attachment_image_with_sizes_named_filter()`
which illustrates the issue.
The patch also includes a change that passes the named size to
`wp_get_attachment_image_sizes()` from `wp_get_attachment_image()` instead
of the size array. It does not change the values passed to
`wp_get_attachment_image_sizes()` from `wp_image_add_srcset_and_sizes()`
at this time.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34477#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list