Skip to content

Commit

Permalink
Remove extra 'the_content' filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
renintw committed Dec 6, 2023
1 parent 29bf3db commit 84a0091
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mu-plugins/blocks/notice/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ function render_shortcode( $attr, $content = '', $tag ) {

// Sanitize message content.
$content = wp_kses_post( $content );
// Temporarily disable o2 processing while formatting content.
add_filter( 'o2_process_the_content', '__return_false', 1 );
$content = apply_filters( 'the_content', $content );
remove_filter( 'o2_process_the_content', '__return_false', 1 );

$block_markup = <<<EOT
<!-- wp:wporg/notice {"type":"$type"} -->
Expand Down

0 comments on commit 84a0091

Please sign in to comment.