From 4179f10b7ac857368186bf8def53748076102a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=83=C2=B3=C3=85=E2=80=9Akowski?= Date: Tue, 23 Mar 2021 09:00:03 +0000 Subject: [PATCH] Editor: Add new theme category for block types Related: https://github.com/WordPress/gutenberg/pull/30020. Introduces a new "theme" category to the default set to use with template-parts and other FSE blocks. Props matveb. Fixes #52883. git-svn-id: https://develop.svn.wordpress.org/trunk@50564 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 1f94655646..37b9239b25 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -2206,6 +2206,11 @@ function get_block_categories( $post ) { 'title' => _x( 'Widgets', 'block category' ), 'icon' => null, ), + array( + 'slug' => 'theme', + 'title' => _x( 'Theme', 'block category' ), + 'icon' => null, + ), array( 'slug' => 'embed', 'title' => _x( 'Embeds', 'block category' ),