[wp-trac] [WordPress Trac] #43070: srcset attribute can be overridden but not prevented
WordPress Trac
noreply at wordpress.org
Thu Jan 11 19:07:50 UTC 2018
#43070: srcset attribute can be overridden but not prevented
--------------------------+-----------------------------
Reporter: desrosj | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.4
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
In `wp_get_attachment_image()`, a `srcset` attribute can be passed to the
fourth parameter to override the attribute's contents. There is no way to
prevent this attribute from showing, though. An empty `srcset` attribute
throws a validation error.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43070>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list