Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
westonruter wants to merge 1 commit into
pavelleonenko007:masterfrom
westonruter:patch-1
Closed

Use correct mechanism to disable auto-sizes CSS fix#1
westonruter wants to merge 1 commit into
pavelleonenko007:masterfrom
westonruter:patch-1

Conversation

@westonruter

@westonruter westonruter commented Jun 12, 2025

Copy link
Copy Markdown

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
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.

1 participant