[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:39:13 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 pbgeneral):
Replying to [comment:9 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.
Thanks. I'm not a tech person — what do you mean? Will there be unintended
side effects from this?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50909#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list