Skip to content

Commit 5c1cf9e

Browse files
authored
Remove experimental blocks feature gate for Taxonomy Filter block (#60225)
* fix: remove experimental blocks feature gate for Taxonomy Filter block * chore: changelog * fix: include category in default product filters template
1 parent 8dfb553 commit 5c1cf9e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: add
3+
4+
Remove experimental blocks feature gate for the Taxonomy Filter block

plugins/woocommerce/client/blocks/assets/js/blocks/product-filters/edit.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const TEMPLATE: InnerBlockTemplate[] = [
3232
[ 'woocommerce/product-filter-price' ],
3333
[ 'woocommerce/product-filter-rating' ],
3434
[ 'woocommerce/product-filter-attribute' ],
35+
[ 'woocommerce/product-filter-taxonomy' ],
3536
[ 'woocommerce/product-filter-status' ],
3637
];
3738

plugins/woocommerce/src/Blocks/BlockTypesController.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Automattic\WooCommerce\Blocks;
55

6-
use Automattic\WooCommerce\Admin\Features\Features;
76
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
87
use Automattic\WooCommerce\Blocks\Assets\Api as AssetApi;
98
use Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry;
@@ -469,6 +468,7 @@ protected function get_block_types() {
469468
'ProductFilterClearButton',
470469
'ProductFilterCheckboxList',
471470
'ProductFilterChips',
471+
'ProductFilterTaxonomy',
472472
'ProductGallery',
473473
'ProductGalleryLargeImage',
474474
'ProductGalleryThumbnails',
@@ -558,10 +558,6 @@ protected function get_block_types() {
558558
$block_types[] = 'AddToCartWithOptions\GroupedProductItemLabel';
559559
}
560560

561-
if ( Features::is_enabled( 'experimental-blocks' ) ) {
562-
$block_types[] = 'ProductFilterTaxonomy';
563-
}
564-
565561
/**
566562
* This enables specific blocks in Widget Areas using an opt-in approach.
567563
*/

0 commit comments

Comments
 (0)