[wp-trac] [WordPress Trac] #43070: srcset attribute can be overridden but not prevented

WordPress Trac noreply at wordpress.org
Thu Jan 11 19:13:46 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        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by desrosj):

 Of note, the `srcset` can be removed with the
 `wp_get_attachment_image_attributes` filter. But, that is not ideal.

 My use case: I am generating a `<picture>` element fallback `<img />` that
 can't have `srcset` or `sizes` attributes.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43070#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list