[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
Sun May 22 11:48:34 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: accepted
Priority: normal | Milestone: 4.6
Component: Media | Version: 4.4.1
Severity: normal | Resolution:
Keywords: responsive has-patch needs-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by temmokan):
@joemcgill Thanks for the patch code.
Regarding CDN compatibility: is file structure expected to be
<CDN URL part>/uploads/YYYY/MM/filename.ext
or
<CDN URL part>/YYYY/MM/filename.ext
If the former, there will be less false srcset's added. If the second,
more general, there will be more. Perhaps */uploads/* should be expected
in CDN URLs?
Note that if "pull" type of CDN is used, then uploads/*, or even wp-
content/uploads/* will be present, most probably.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36822#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list