[wp-trac] [WordPress Trac] #50909: WordPress 5.5 update adds height and width attributes to images
WordPress Trac
noreply at wordpress.org
Wed Aug 12 00:34:14 UTC 2020
#50909: WordPress 5.5 update adds height and width attributes to images
--------------------------+------------------------------
Reporter: jeslen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.5
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by jeslen):
Replying to [comment:8 pbgeneral]:
> I'm having precisely this issue. It has distorted the images on hundreds
of my articles, so it's a pretty serious matter.
Adding this CSS should resolve the issue.
{{{
img {
max-width: 100%;
height: auto;
}
}}}
Although I'm not sure if this will prevent the height attribute from
working in scenarios where that is preferred.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50909#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list