Skip to content

Commit

Permalink
Editor: Add new theme category for block types
Browse files Browse the repository at this point in the history
Related: WordPress/gutenberg#30020.

Introduces a new "theme" category to the default set to use with template-parts and other FSE blocks.

Props matveb.
Fixes #52883. 


Built from https://develop.svn.wordpress.org/trunk@50564


git-svn-id: http://core.svn.wordpress.org/trunk@50177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
gziolo authored and F-Wilke committed Jul 31, 2021
1 parent 07290ec commit 17b7d32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions wp-admin/includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-50563';
$wp_version = '5.8-alpha-50564';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 17b7d32

Please sign in to comment.