summaryrefslogtreecommitdiffstats
path: root/wp-includes/block-supports/duotone.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/block-supports/duotone.php')
-rw-r--r--wp-includes/block-supports/duotone.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/wp-includes/block-supports/duotone.php b/wp-includes/block-supports/duotone.php
index a90eb76..df328c3 100644
--- a/wp-includes/block-supports/duotone.php
+++ b/wp-includes/block-supports/duotone.php
@@ -42,6 +42,7 @@ WP_Block_Supports::get_instance()->register(
// Add classnames to blocks using duotone support.
add_filter( 'render_block', array( 'WP_Duotone', 'render_duotone_support' ), 10, 3 );
+add_filter( 'render_block_core/image', array( 'WP_Duotone', 'restore_image_outer_container' ), 10, 1 );
// Enqueue styles.
// Block styles (core-block-supports-inline-css) before the style engine (wp_enqueue_stored_styles).