From b4d1c4ad09bcdba02da5fb16b1ce46fd159bd30b Mon Sep 17 00:00:00 2001 From: Qadriinfotech Date: Mon, 13 Jan 2020 17:51:10 +0530 Subject: [PATCH 1/2] Update block-filters.md Made the description short and meaningful. --- docs/designers-developers/developers/filters/block-filters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/designers-developers/developers/filters/block-filters.md b/docs/designers-developers/developers/filters/block-filters.md index b0be75557076a..66878de0b8815 100644 --- a/docs/designers-developers/developers/filters/block-filters.md +++ b/docs/designers-developers/developers/filters/block-filters.md @@ -414,7 +414,7 @@ add_filter( 'block_categories', 'my_plugin_block_categories', 10, 2 ); You can also display an icon with your block category by setting an `icon` attribute. The value can be the slug of a [WordPress Dashicon](https://developer.wordpress.org/resource/dashicons/). -It is possible to set an SVG as the icon of the category if a custom icon is needed. To do so, the icon should be rendered and set on the frontend, so it can make use of WordPress SVG, allowing mobile compatibility and making the icon more accessible. +You can also set custom icon in SVG format. To do so, the icon should be rendered and set on the frontend, so it can make use of WordPress SVG, allowing mobile compatibility and making the icon more accessible. To set an SVG icon for the category shown in the previous example, add the following example JavaScript code to the editor calling `wp.blocks.updateCategory` e.g: ```js From ff59dd795616e2e02f99aa43ec8bb007e4c1453a Mon Sep 17 00:00:00 2001 From: Aezaz Shaikh Date: Thu, 16 Jan 2020 23:10:39 +0530 Subject: [PATCH 2/2] Update docs/designers-developers/developers/filters/block-filters.md grammatical fix Co-Authored-By: Marcus Kazmierczak --- docs/designers-developers/developers/filters/block-filters.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/designers-developers/developers/filters/block-filters.md b/docs/designers-developers/developers/filters/block-filters.md index 66878de0b8815..ca9d8fe860203 100644 --- a/docs/designers-developers/developers/filters/block-filters.md +++ b/docs/designers-developers/developers/filters/block-filters.md @@ -414,7 +414,7 @@ add_filter( 'block_categories', 'my_plugin_block_categories', 10, 2 ); You can also display an icon with your block category by setting an `icon` attribute. The value can be the slug of a [WordPress Dashicon](https://developer.wordpress.org/resource/dashicons/). -You can also set custom icon in SVG format. To do so, the icon should be rendered and set on the frontend, so it can make use of WordPress SVG, allowing mobile compatibility and making the icon more accessible. +You can also set a custom icon in SVG format. To do so, the icon should be rendered and set on the frontend, so it can make use of WordPress SVG, allowing mobile compatibility and making the icon more accessible. To set an SVG icon for the category shown in the previous example, add the following example JavaScript code to the editor calling `wp.blocks.updateCategory` e.g: ```js @@ -426,4 +426,3 @@ To set an SVG icon for the category shown in the previous example, add the follo wp.blocks.updateCategory( 'my-category', { icon: svgIcon } ); } )(); ``` -