Skip to content

Commit

Permalink
fixed anchor rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Dec 15, 2024
1 parent 7ff4f37 commit 21f4935
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/class-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public function register_block() {
public function block_render( $attributes ) {
$attributes = array_merge(
array(
'anchor' => '',
'align' => '',
'className' => '',
),
Expand All @@ -188,6 +189,7 @@ public function block_render( $attributes ) {

$wrapper_attributes = get_block_wrapper_attributes(
array(
'id' => $attributes['anchor'],
'class' => $class_name,
)
);
Expand Down

0 comments on commit 21f4935

Please sign in to comment.