From fcb6704e9f9d3460df04cd63cbdc83495d7be3cc Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Thu, 16 Mar 2023 09:54:25 +1100 Subject: [PATCH] Add column-gap and row-gap as allowed CSS properties for compatibility with WP 6.0 --- lib/compat/wordpress-6.1/blocks.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/compat/wordpress-6.1/blocks.php b/lib/compat/wordpress-6.1/blocks.php index 8ee0acba6b6cfe..908cf3f088eb95 100644 --- a/lib/compat/wordpress-6.1/blocks.php +++ b/lib/compat/wordpress-6.1/blocks.php @@ -16,6 +16,8 @@ function gutenberg_safe_style_attrs_6_1( $attrs ) { $attrs[] = 'flex-wrap'; $attrs[] = 'gap'; + $attrs[] = 'column-gap'; + $attrs[] = 'row-gap'; $attrs[] = 'margin-block-start'; $attrs[] = 'margin-block-end'; $attrs[] = 'margin-inline-start';