Skip to content

Commit

Permalink
fixup! disable style tag added in WordPress 6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Dec 7, 2024
1 parent 5c6aa6d commit 0986c7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/jquery-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
return 1024 * 1024;
} );

// Disable the new image sizes feature.
// It adds a style tag that would require a CSP exception.
add_filter( 'wp_img_tag_add_auto_sizes', '__return_false' );

// Allow full HTML in term descriptions.
add_action( 'init', 'jquery_unfiltered_html_for_term_descriptions' );
add_action( 'set_current_user', 'jquery_unfiltered_html_for_term_descriptions' );
Expand Down

0 comments on commit 0986c7e

Please sign in to comment.