From 4c7a089f5b8eadcd31c18b79aa9c9c5cdef35576 Mon Sep 17 00:00:00 2001 From: Francesco Pepe Date: Fri, 25 Aug 2023 09:25:01 +0200 Subject: [PATCH] FIx #10 The default button has additional class element-button --- src/class-lsq-register-block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class-lsq-register-block.php b/src/class-lsq-register-block.php index 6ebdc73..f324463 100644 --- a/src/class-lsq-register-block.php +++ b/src/class-lsq-register-block.php @@ -121,7 +121,7 @@ public function filter_button_block_markup( $block_content = '', $block = array( $classes .= ' lemonsqueezy-button'; } - $block_content = str_replace( '', '', $block_content ); + $block_content = str_replace( '', '', $block_content ); } if ( isset( $block['blockName'] ) && 'lemonsqueezy/ls-button' === $block['blockName'] ) { $args = wp_parse_args( $block['attrs'] );