[wp-trac] [WordPress Trac] #62515: 6.7.1. Pictures height
WordPress Trac
noreply at wordpress.org
Thu Nov 28 10:16:10 UTC 2024
#62515: 6.7.1. Pictures height
-------------------------------------------------+-------------------------
Reporter: fredel | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 6.7.2
Component: Media | Version: 6.7.1
Severity: normal | Resolution:
Keywords: has-testing-info has-screenshots | Focuses:
reporter-feedback |
-------------------------------------------------+-------------------------
Comment (by fredel):
Replying to [comment:19 joemcgill]:
hey sorry late reply, strange: i just checked & disabled all plugins
without making a difference, so problem should be s.w. else? :/ maybe its
inside the theme but tbh i am just a beginner and the theme is quite old
and not supported.. but problem seems to appear also on other sites.. thx
in any case
> @fredel thanks for the additional details about your use case. One thing
that I notice when inspecting the markup you shared is that auto-sizes,
(i.e., `sizes="auto, ..."`) is being added even though the `img` element
doesn't include `height` or `width` attributes.
>
> This shouldn't happen with the implementation from WordPress, so I'm
curious if you know of any additional plugins or filters that would be
stripping the dimensions after WordPress generates the markup?
>
> For anyone else experiencing this issue when upgrading to 6.7.1, I would
suggest trying the same filter that is working for @fredel:
>
> {{{#!php
> // Disable auto-sizes.
> add_filter('wp_img_tag_add_auto_sizes', '__return_false');
> }}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62515#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list