[wp-trac] [WordPress Trac] #62515: 6.7.1. Pictures height
WordPress Trac
noreply at wordpress.org
Tue Nov 26 18:23:09 UTC 2024
#62515: 6.7.1. Pictures height
-------------------------------------------------+-------------------------
Reporter: fredel | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Media | Version: 6.7.1
Severity: normal | Resolution:
Keywords: has-testing-info has-screenshots | Focuses:
reporter-feedback |
-------------------------------------------------+-------------------------
Changes (by joemcgill):
* keywords: has-testing-info has-screenshots has-patch => has-testing-info
has-screenshots reporter-feedback
Comment:
@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:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list