From 82224ff1e372ac6cc0e585f9fd774cf86e245e33 Mon Sep 17 00:00:00 2001 From: Miguel Peixe Date: Tue, 22 Mar 2022 17:21:53 -0300 Subject: [PATCH] fix: disable row group block variation (#772) --- src/editor/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/editor/index.js b/src/editor/index.js index a4ec90a79..5d8e3f8cb 100644 --- a/src/editor/index.js +++ b/src/editor/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { unregisterBlockStyle } from '@wordpress/blocks'; +import { unregisterBlockStyle, unregisterBlockVariation } from '@wordpress/blocks'; import domReady from '@wordpress/dom-ready'; import { addFilter, removeFilter } from '@wordpress/hooks'; import { registerPlugin } from '@wordpress/plugins'; @@ -27,11 +27,13 @@ registerEmbedBlockEdit(); registerMergeTagsFilters(); registerVisibilityFilters(); -/* Unregister core block styles that are unsupported in emails */ domReady( () => { + /* Unregister core block styles that are unsupported in emails */ unregisterBlockStyle( 'core/separator', 'dots' ); unregisterBlockStyle( 'core/social-links', 'logos-only' ); unregisterBlockStyle( 'core/social-links', 'pill-shape' ); + /* Unregister "row" group block variation */ + unregisterBlockVariation( 'core/group', 'group-row' ); } ); /* Remove Duotone filters */