[wp-trac] [WordPress Trac] #62731: Inline CSS inserted by wp_print_auto_sizes_contain_css_fix too high in HTML
WordPress Trac
noreply at wordpress.org
Tue Sep 30 00:29:16 UTC 2025
#62731: Inline CSS inserted by wp_print_auto_sizes_contain_css_fix too high in HTML
--------------------------------------------------+---------------------
Reporter: superpoincare | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.9
Component: Media | Version: 6.7.1
Severity: minor | Resolution:
Keywords: has-patch has-test-info dev-feedback | Focuses:
--------------------------------------------------+---------------------
Changes (by westonruter):
* keywords: has-patch has-test-info changes-requested => has-patch has-
test-info dev-feedback
Comment:
I've refreshed the patch by merging in the latest from `trunk`.
I believe the current approach addresses the concern by @flixos90 by
deprecating the existing `wp_print_auto_sizes_contain_css_fix()` function
and introducing a new `wp_enqueue_img_auto_sizes_contain_css_fix()`. Both
the deprecated function and the new function both retain the same
`wp_img_tag_add_auto_sizes` filter for preventing the style from being
output.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62731#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list