Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 9ab5641

Browse files
dinhtungdusunyatasattva
authored andcommitted
Correct block name and description (#7354)
* Correct block name and description * remove duplicated description for controls blocks * remove duplicated title and desc * Revert "remove duplicated description for controls blocks" This reverts commit ed5417e.
1 parent 4614041 commit 9ab5641

File tree

6 files changed

+7
-21
lines changed

6 files changed

+7
-21
lines changed

assets/js/blocks/active-filters/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "woocommerce/active-filters",
33
"version": "1.0.0",
4-
"title": "Active Product Filter Controls",
4+
"title": "Active Product Filters Controls",
55
"description": "Display the currently active product filters.",
66
"category": "woocommerce",
77
"keywords": [ "WooCommerce" ],

assets/js/blocks/active-filters/index.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ import { blockAttributes } from './attributes';
1717
import { Attributes } from './types';
1818

1919
registerBlockType( metadata, {
20-
title: __(
21-
'Active Product Filter Controls',
22-
'woo-gutenberg-products-block'
23-
),
24-
description: __(
25-
'Display the currently active product filters.',
26-
'woo-gutenberg-products-block'
27-
),
2820
icon: {
2921
src: (
3022
<Icon

assets/js/blocks/attribute-filter/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "woocommerce/attribute-filter",
33
"version": "1.0.0",
44
"title": "Filter by Attribute Controls",
5-
"description": "Allow customers to filter the grid by product attribute, such as color.",
5+
"description": "Enable customers to filter the product grid by selecting one or more attributes, such as color.",
66
"category": "woocommerce",
77
"keywords": [ "WooCommerce" ],
88
"supports": {

assets/js/blocks/filter-wrapper/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ registerBlockType( metadata, {
2929
'woo-gutenberg-products-block'
3030
),
3131
description: __(
32-
'Show the currently active product filters. Works in combination with other filters blocks.',
32+
'Display the currently active product filters.',
3333
'woo-gutenberg-products-block'
3434
),
3535
/**
@@ -58,7 +58,7 @@ registerBlockType( metadata, {
5858
name: 'price-filter',
5959
title: __( 'Filter by Price', 'woo-gutenberg-products-block' ),
6060
description: __(
61-
'Allow customers to filter products by price range.',
61+
'Enable customers to filter the product grid by choosing a price range.',
6262
'woo-gutenberg-products-block'
6363
),
6464
isActive: ( attributes ) =>
@@ -83,7 +83,7 @@ registerBlockType( metadata, {
8383
name: 'stock-filter',
8484
title: __( 'Filter by Stock', 'woo-gutenberg-products-block' ),
8585
description: __(
86-
'Allow customers to filter the grid by products stock status.',
86+
'Enable customers to filter the product grid by stock status.',
8787
'woo-gutenberg-products-block'
8888
),
8989
isActive: ( attributes ) =>
@@ -108,7 +108,7 @@ registerBlockType( metadata, {
108108
name: 'attribute-filter',
109109
title: __( 'Filter by Attribute', 'woo-gutenberg-products-block' ),
110110
description: __(
111-
'Allow customers to filter the grid by product attribute, such as color.',
111+
'Enable customers to filter the product grid by selecting one or more attributes, such as color.',
112112
'woo-gutenberg-products-block'
113113
),
114114
isActive: ( attributes ) =>

assets/js/blocks/stock-filter/block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "woocommerce/stock-filter",
33
"version": "1.0.0",
44
"title": "Filter by Stock Controls",
5-
"description": "Allow customers to filter the grid by products stock status.",
5+
"description": "Enable customers to filter the product grid by stock status.",
66
"category": "woocommerce",
77
"keywords": [ "WooCommerce" ],
88
"supports": {

assets/js/blocks/stock-filter/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { registerBlockType } from '@wordpress/blocks';
55
import { Icon, box } from '@wordpress/icons';
66
import classNames from 'classnames';
77
import { useBlockProps } from '@wordpress/block-editor';
8-
import { __ } from '@wordpress/i18n';
98

109
/**
1110
* Internal dependencies
@@ -16,11 +15,6 @@ import { blockAttributes } from './attributes';
1615
import type { Attributes } from './types';
1716

1817
registerBlockType( metadata, {
19-
title: __( 'Filter Products by Stock', 'woo-gutenberg-products-block' ),
20-
description: __(
21-
'Enable customers to filter the product grid by stock status.',
22-
'woo-gutenberg-products-block'
23-
),
2418
icon: {
2519
src: (
2620
<Icon

0 commit comments

Comments
 (0)