Skip to content

Commit 0986c7e

Browse files
committed
fixup! disable style tag added in WordPress 6.7
1 parent 5c6aa6d commit 0986c7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/jquery-filters.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
return 1024 * 1024;
8989
} );
9090

91+
// Disable the new image sizes feature.
92+
// It adds a style tag that would require a CSP exception.
93+
add_filter( 'wp_img_tag_add_auto_sizes', '__return_false' );
94+
9195
// Allow full HTML in term descriptions.
9296
add_action( 'init', 'jquery_unfiltered_html_for_term_descriptions' );
9397
add_action( 'set_current_user', 'jquery_unfiltered_html_for_term_descriptions' );

0 commit comments

Comments
 (0)