Make WordPress Core


Ignore:
Timestamp:
06/04/2024 01:46:03 AM (7 weeks ago)
Author:
isabel_brison
Message:

Editor: fix duotone filter for aligned images on classic themes.

Adds a filter to move the duotone classname to the outer wrapper on aligned images.

Props scruffian, isabel_brison, ajlende.
Fixes #61271.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/duotone.php

    r56226 r58313  
    4343// Add classnames to blocks using duotone support.
    4444add_filter( 'render_block', array( 'WP_Duotone', 'render_duotone_support' ), 10, 3 );
     45add_filter( 'render_block_core/image', array( 'WP_Duotone', 'restore_image_outer_container' ), 10, 1 );
    4546
    4647// Enqueue styles.
Note: See TracChangeset for help on using the changeset viewer.