[wp-trac] [WordPress Trac] #36822: srcset is added to <img /> even if media file is not present in media library
WordPress Trac
noreply at wordpress.org
Wed May 18 20:24:51 UTC 2016
#36822: srcset is added to <img /> even if media file is not present in media
library
------------------------------+------------------------------
Reporter: temmokan | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.5.2
Severity: normal | Resolution:
Keywords: responsive media | Focuses:
------------------------------+------------------------------
Comment (by joemcgill):
HI @temmokan,
Thanks for the report. The `srcset` and `sizes` attributes are added on
the front end if the image contains a `wp-image-{{id}}` class, based on
the attachment metadata. It's not immediately clear to me based on your
example what might be happening here. Could you outline the steps you've
going through to reproduce this issue? In other words, how are those
images being added to the posts if they're not in the media library, and
how are you changing the `src` attribute to point to an external source?
Thanks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36822#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list