[wp-trac] [WordPress Trac] #36191: Support responsive images in WP_Customize_Media_Control
WordPress Trac
noreply at wordpress.org
Sun May 23 19:01:25 UTC 2021
#36191: Support responsive images in WP_Customize_Media_Control
--------------------------+---------------------------------
Reporter: melchoyce | Owner: joemcgill
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: ui, administration
--------------------------+---------------------------------
Changes (by celloexpressions):
* keywords: has-patch => needs-patch
* version: => 4.1
Comment:
@joemcgill does the media library have a way to send the full `srcset`
markup to the customize control JS now? I've had success with pulling
srcset data from frontend post content markup and back into JS templates
elsewhere.
Ideally the `content_template` would only have something like `srcset="{{
data.attachment.srcset }}"` added to it and the rest of the logic happens
in JS.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36191#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list