Skip to content

Commit

Permalink
Fix for WP 6.6.2, but it don't work for flusswanderer #2
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFloeter committed Oct 24, 2024
1 parent 5dcee3b commit ad9ef60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hyperlink-group-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ function add_button_size_class( $block_content = '', $block = [] ) {
'</span>',
$b['innerHTML']
);
$block_content = preg_replace(
'/\s[a-zA-Z0-9-]*--[a-zA-Z0-9]*/',
'',
$block_content
);
$block_content = str_replace(
$replace,
$b['innerHTML'],
Expand Down

0 comments on commit ad9ef60

Please sign in to comment.