Editor: Update default block categories

See https://github.com/WordPress/gutenberg/pull/19279.

Props aduth, gziolo.
Fixes #50278.


git-svn-id: https://develop.svn.wordpress.org/trunk@48119 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ella van Durpe 2020-06-22 14:05:36 +00:00
parent 9b2b8cad20
commit 33438e0658
1 changed files with 9 additions and 9 deletions

View File

@ -2179,33 +2179,33 @@ function use_block_editor_for_post_type( $post_type ) {
function get_block_categories( $post ) { function get_block_categories( $post ) {
$default_categories = array( $default_categories = array(
array( array(
'slug' => 'common', 'slug' => 'text',
'title' => __( 'Common Blocks' ), 'title' => _x( 'Text', 'block category' ),
'icon' => null, 'icon' => null,
), ),
array( array(
'slug' => 'formatting', 'slug' => 'media',
'title' => __( 'Formatting' ), 'title' => _x( 'Media', 'block category' ),
'icon' => null, 'icon' => null,
), ),
array( array(
'slug' => 'layout', 'slug' => 'design',
'title' => __( 'Layout Elements' ), 'title' => _x( 'Design', 'block category' ),
'icon' => null, 'icon' => null,
), ),
array( array(
'slug' => 'widgets', 'slug' => 'widgets',
'title' => __( 'Widgets' ), 'title' => _x( 'Widgets', 'block category' ),
'icon' => null, 'icon' => null,
), ),
array( array(
'slug' => 'embed', 'slug' => 'embed',
'title' => __( 'Embeds' ), 'title' => _x( 'Embeds', 'block category' ),
'icon' => null, 'icon' => null,
), ),
array( array(
'slug' => 'reusable', 'slug' => 'reusable',
'title' => __( 'Reusable Blocks' ), 'title' => _x( 'Reusable Blocks', 'block category' ),
'icon' => null, 'icon' => null,
), ),
); );