[wp-trac] [WordPress Trac] #34612: Responsive Images: Make new function/filter signatures more consistent
WordPress Trac
noreply at wordpress.org
Sat Nov 7 04:21:46 UTC 2015
#34612: Responsive Images: Make new function/filter signatures more consistent
--------------------------+-----------------------
Reporter: joemcgill | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Media | Version:
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------
As a part of the responsive images features being added in 4.4, we should
promote internal consistency in the new functions and filters we're
adding. To that end, several of us working on this feature have discussed
splitting `wp_get_attachment_image_sizes()` into two functions: an
internally used function that calculates the sizes attribute, and an
external use function that can be used easily in themes. This mimics the
pattern we already established with `wp_calculate_image_srcset()` and
`wp_get_attachment_image_srceset()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34612>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list