Skip to content

Use correct mechanism to disable auto-sizes CSS fix#4

Closed
westonruter wants to merge 1 commit intoconedevelopment:mainfrom
westonruter:patch-1
Closed

Use correct mechanism to disable auto-sizes CSS fix#4
westonruter wants to merge 1 commit intoconedevelopment:mainfrom
westonruter:patch-1

Conversation

@westonruter
Copy link
Copy Markdown

@westonruter westonruter commented Jun 12, 2025

As per https://core.trac.wordpress.org/ticket/62731 we may be using a different function that hooks into wp_enqueue_scripts instead of wp_head. There is also a wp_img_tag_add_auto_sizes filter specifically for the purpose of disabling this style, so it should be used instead.

@westonruter
Copy link
Copy Markdown
Author

I was incorrect so suggest the use of the filter. See WordPress/wordpress-develop#8954 (comment).

@westonruter westonruter closed this Oct 3, 2025
@adamlaki
Copy link
Copy Markdown
Member

adamlaki commented Oct 5, 2025

Thank you anyway, nice to know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants