Skip to content

Commit

Permalink
Revert "Add duotone class to nested figure elements"
Browse files Browse the repository at this point in the history
This reverts commit ee4e776.
  • Loading branch information
artemiomorales committed May 30, 2023
1 parent ee4e776 commit 78b3967
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/class-wp-duotone-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -881,12 +881,7 @@ public static function render_duotone_support( $block_content, $block ) {

// Like the layout hook, this assumes the hook only applies to blocks with a single wrapper.
$tags = new WP_HTML_Tag_Processor( $block_content );
while ( $tags->next_tag(
array(
'tag_name' => 'figure',
'class_name' => 'wp-block-image',
)
) ) {
if ( $tags->next_tag() ) {
$tags->add_class( $filter_id );
}

Expand Down

0 comments on commit 78b3967

Please sign in to comment.