We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ac2e1 commit ad51973Copy full SHA for ad51973
plugins/auto-sizes/hooks.php
@@ -183,11 +183,8 @@ function auto_sizes_prime_attachment_caches( $content ): string {
183
return $content;
184
}
185
186
-/*
187
- * The priority 6 is used to ensure the new filter runs right after the "wp-image-$attachment_id" class
188
- * is added to the img tag at priority 5, allowing modifications that rely on this class being in place.
189
- */
190
-add_filter( 'the_content', 'auto_sizes_prime_attachment_caches', 6 );
+// This must run before 'do_blocks', which runs at priority 9.
+add_filter( 'the_content', 'auto_sizes_prime_attachment_caches', 9 );
191
192
/**
193
* Filter the sizes attribute for images to improve the default calculation.
0 commit comments