Skip to content

Commit d10175b

Browse files
authored
Use correct mechanism to disable auto-sizes CSS fix (#3)
1 parent 1b0f3cd commit d10175b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
remove_action('wp_head', 'rsd_link');
2323
remove_action('wp_head', 'wp_oembed_add_discovery_links');
2424
remove_action('wp_head', 'wp_custom_css_cb', 101);
25-
remove_action('wp_head', 'wp_print_auto_sizes_contain_css_fix', 1);
25+
add_filter('wp_img_tag_add_auto_sizes', '__return_false');
2626

2727
// Disable emojis
2828
remove_action('wp_head', 'print_emoji_detection_script', 7);

0 commit comments

Comments
 (0)