#50278 closed enhancement (fixed)
Editor: Update default block categories
Reported by: | aduth | Owned by: | ellatrix |
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | has-patch commit has-dev-note |
Focuses: | Cc: |
Description
Related: https://github.com/WordPress/gutenberg/pull/19279
Background:
In GB#19279 (issue GB11406), the default set of block categories was updated.
The new set of block categories are:
- Text
- Media
- Design
- Widgets
- Embeds
- Reusable
Of the above, a few have remained unchanged: Widgets, Embeds, Reusable.
Mappings have been added to ensure that existing blocks will be assigned to as close as possible to an equivalent category in the new set:
- Common → Text
- Formatting → Text
- Layout → Design
Task:
The default set of block categories implemented in Core PHP should be updated to correspond to these revisions.
This array:
Attachments (2)
Change History (16)
#4
@
4 years ago
- Keywords needs-refresh added; commit removed
Should translator context or comment be provided for any of these new strings?
Yes, block category
would be enough.
#5
@
4 years ago
- Keywords commit added; needs-refresh removed
This is good to go after i18n part gets updated. We should merge is just before #50420 because otherwise the majority blocks won't be exposed in the inserter. With WordPress 5.5, the category name won't be mandatory anymore.
#7
@
4 years ago
- Owner set to ellatrix
- Resolution set to fixed
- Status changed from new to closed
In 48119:
#9
@
4 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
I reverted 48119 as it caused most blocks to throw an 'Unknown category' error when loading the block editor in trunk
without the Gutenberg plugin activated. This made the block editor unusable in trunk
and in Make/Core.
We'll need to commit this at the same time that packages are updated so that there aren't calls to registerBlockType()
which use the old category.
Open question: Should translator context or comment be provided for any of these new strings?
e.g. disambiguate as label of block category? Disambiguate "Text" or "Design" as verb vs. noun.
https://developer.wordpress.org/apis/handbook/internationalization/internationalization-guidelines/#disambiguation-by-context
There was none previously.