[wp-trac] [WordPress Trac] #36982: Add image attributes and additional context to the wp_calculate_image_srcset and wp_calculate_image_sizes filters
WordPress Trac
noreply at wordpress.org
Tue Jan 31 15:41:20 UTC 2017
#36982: Add image attributes and additional context to the
wp_calculate_image_srcset and wp_calculate_image_sizes filters
--------------------------+------------------------------
Reporter: kylereicks | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.6
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses: template
--------------------------+------------------------------
Comment (by herrschuessler):
I second @kylereicks considerations. There are many use cases where
responsive images will need a different `sizes` attribute based on their
alignment value, e.g. when floated images are displayed smaller than non-
aligned, full-column images. Therefore, the alignment value should be
available in `wp_calculate_image_sizes`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36982#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list