Skip to content

Commit

Permalink
See pewresearch/pewresearch-org@9722070 from refs/heads/release/5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
prcdevgitbot committed Mar 14, 2024
1 parent b0021fc commit 7b56e53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/post-taxonomy-terms/post-taxonomy-terms.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public function block_init() {

// Create and register eligible taxonomy variations.
foreach ( $taxonomies as $taxonomy ) {
$taxonomy_name = !empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name;
$variation = array(
'name' => $taxonomy->name,
'title' => $taxonomy->label,
Expand All @@ -133,7 +134,7 @@ public function block_init() {
$taxonomy->label
),
'attributes' => array(
'taxonomy' => $taxonomy->rest_base,
'taxonomy' => $taxonomy_name,
),
'isActive' => array( 'taxonomy' ),
'scope' => array( 'inserter', 'transform' ),
Expand Down

0 comments on commit 7b56e53

Please sign in to comment.