[wp-trac] [WordPress Trac] #43540: srcset not added when the original image size doesn't exist in the database after regeneration
WordPress Trac
noreply at wordpress.org
Wed Mar 14 20:11:23 UTC 2018
#43540: srcset not added when the original image size doesn't exist in the database
after regeneration
--------------------------+------------------------------
Reporter: smerriman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by smerriman):
Given thumbnails have a consistent -[width]x[height] format, is it not
possible to simply check the version without that is in the metadata?
If the attachment ID matches (already tested), AND the full size filename
matches, AND the ratio matches (already tested, so won't result in other
crops), I find it unlikely you'd ever run into issues.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43540#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list