[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:21:07 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):
PS - note that the width and height are primarily read from the parameters
on the img tag (only metadata if width and height don't exist), so other
crops aren't an issue regardless.
The only issue would be is if the image ID doesn't match the actual image,
and it serves a completely different image instead - which testing the URL
with -[width]x[height] stripped would resolve.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43540#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list