diff --git a/lib/block-supports/duotone.php b/lib/block-supports/duotone.php index f3b4743832f0ae..fcf9191dc32775 100644 --- a/lib/block-supports/duotone.php +++ b/lib/block-supports/duotone.php @@ -361,4 +361,7 @@ function ( $selector ) use ( $duotone_id ) { 'register_attribute' => 'gutenberg_register_duotone_support', ) ); + +// Remove WordPress core filter to avoid rendering duplicate support elements. +remove_filter( 'render_block', 'wp_render_duotone_support', 10, 2 ); add_filter( 'render_block', 'gutenberg_render_duotone_support', 10, 2 );