From 5e093aceff7be925b5119e6c8a32991822df476c Mon Sep 17 00:00:00 2001 From: Tung Du Date: Tue, 11 Oct 2022 15:39:34 +0700 Subject: [PATCH] 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 ed5417eb0e5191ed2f1def2a04c9e724fe70856a. --- assets/js/blocks/active-filters/block.json | 2 +- assets/js/blocks/active-filters/index.tsx | 8 -------- assets/js/blocks/attribute-filter/block.json | 2 +- assets/js/blocks/filter-wrapper/index.tsx | 8 ++++---- assets/js/blocks/stock-filter/block.json | 2 +- assets/js/blocks/stock-filter/index.tsx | 6 ------ 6 files changed, 7 insertions(+), 21 deletions(-) diff --git a/assets/js/blocks/active-filters/block.json b/assets/js/blocks/active-filters/block.json index a587007a243..09f8e1b571c 100644 --- a/assets/js/blocks/active-filters/block.json +++ b/assets/js/blocks/active-filters/block.json @@ -1,7 +1,7 @@ { "name": "woocommerce/active-filters", "version": "1.0.0", - "title": "Active Product Filter Controls", + "title": "Active Product Filters Controls", "description": "Display the currently active product filters.", "category": "woocommerce", "keywords": [ "WooCommerce" ], diff --git a/assets/js/blocks/active-filters/index.tsx b/assets/js/blocks/active-filters/index.tsx index f330cb0e9ad..e63c31f5eb3 100644 --- a/assets/js/blocks/active-filters/index.tsx +++ b/assets/js/blocks/active-filters/index.tsx @@ -17,14 +17,6 @@ import { blockAttributes } from './attributes'; import { Attributes } from './types'; registerBlockType( metadata, { - title: __( - 'Active Product Filter Controls', - 'woo-gutenberg-products-block' - ), - description: __( - 'Display the currently active product filters.', - 'woo-gutenberg-products-block' - ), icon: { src: ( @@ -83,7 +83,7 @@ registerBlockType( metadata, { name: 'stock-filter', title: __( 'Filter by Stock', 'woo-gutenberg-products-block' ), description: __( - 'Allow customers to filter the grid by products stock status.', + 'Enable customers to filter the product grid by stock status.', 'woo-gutenberg-products-block' ), isActive: ( attributes ) => @@ -108,7 +108,7 @@ registerBlockType( metadata, { name: 'attribute-filter', title: __( 'Filter by Attribute', 'woo-gutenberg-products-block' ), description: __( - 'Allow customers to filter the grid by product attribute, such as color.', + 'Enable customers to filter the product grid by selecting one or more attributes, such as color.', 'woo-gutenberg-products-block' ), isActive: ( attributes ) => diff --git a/assets/js/blocks/stock-filter/block.json b/assets/js/blocks/stock-filter/block.json index ea1da4b7e35..885cb64d44f 100644 --- a/assets/js/blocks/stock-filter/block.json +++ b/assets/js/blocks/stock-filter/block.json @@ -2,7 +2,7 @@ "name": "woocommerce/stock-filter", "version": "1.0.0", "title": "Filter by Stock Controls", - "description": "Allow customers to filter the grid by products stock status.", + "description": "Enable customers to filter the product grid by stock status.", "category": "woocommerce", "keywords": [ "WooCommerce" ], "supports": { diff --git a/assets/js/blocks/stock-filter/index.tsx b/assets/js/blocks/stock-filter/index.tsx index 209946f2b34..999bb034439 100644 --- a/assets/js/blocks/stock-filter/index.tsx +++ b/assets/js/blocks/stock-filter/index.tsx @@ -5,7 +5,6 @@ import { registerBlockType } from '@wordpress/blocks'; import { Icon, box } from '@wordpress/icons'; import classNames from 'classnames'; import { useBlockProps } from '@wordpress/block-editor'; -import { __ } from '@wordpress/i18n'; /** * Internal dependencies @@ -16,11 +15,6 @@ import { blockAttributes } from './attributes'; import type { Attributes } from './types'; registerBlockType( metadata, { - title: __( 'Filter Products by Stock', 'woo-gutenberg-products-block' ), - description: __( - 'Enable customers to filter the product grid by stock status.', - 'woo-gutenberg-products-block' - ), icon: { src: (