Skip to content

Commit

Permalink
Patterns: Remove pattern category as a variation for post terms block (
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz authored Sep 18, 2023
1 parent 0ed3cd3 commit cef6d46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-library/src/post-terms/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ function register_block_core_post_terms() {

// Create and register the eligible taxonomies variations.
foreach ( $taxonomies as $taxonomy ) {
// Skip the `wp_pattern_category` taxonomy as this should not be an
// available variation for the `core/post-terms` block.
if ( 'wp_pattern_category' === $taxonomy->name ) {
continue;
}
$variation = array(
'name' => $taxonomy->name,
'title' => $taxonomy->label,
Expand Down

0 comments on commit cef6d46

Please sign in to comment.