From 5532dd39dccf457487624bfa66dabfddcc4768da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Fri, 17 Nov 2023 11:42:09 +0200 Subject: [PATCH] TMS-994: Add missing list-item block to use --- CHANGELOG.MD | 2 ++ lib/BlocksController.php | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 7d708d7d..08a5ef93 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- TMS-994: Add missing list-item block to use + ## [1.53.0] - 2023-11-07 ### Added diff --git a/lib/BlocksController.php b/lib/BlocksController.php index ffa1d871..a7b6e3fa 100644 --- a/lib/BlocksController.php +++ b/lib/BlocksController.php @@ -113,6 +113,16 @@ private function allowed_block_types( $allowed_blocks, $context ) { '', ], ], + 'core/list-item' => [ + 'post_types' => [ + PostType\Page::SLUG, + PostType\Post::SLUG, + PostType\BlogArticle::SLUG, + ], + 'templates' => [ + '', + ], + ], 'core/heading' => [ 'post_types' => [ PostType\Page::SLUG,