Skip to content

Commit

Permalink
adds block variation name for multiple registrations (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
bacoords authored Sep 3, 2024
1 parent 05e0978 commit ab4d514
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/runtime/class-content-model-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public function register_block_variation( $variations, $block_type ) {
}

$variation = array(
'name' => sanitize_title( $this->block_variation_name ),
'title' => $this->block_variation_name,
'category' => $this->content_model->slug . '-fields',
'attributes' => array_merge(
Expand Down

0 comments on commit ab4d514

Please sign in to comment.