Skip to content

Commit

Permalink
Create Block: Update the list of categories to pick from (#26448)
Browse files Browse the repository at this point in the history
* Create Block: Update the list of categories to pick from

* Update CHANGELOG.md
  • Loading branch information
gziolo committed Oct 30, 2020
1 parent e9d684e commit 8fde3b5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/create-block/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Breaking Changes

- Update the list of available block categories to align with changes introduced in WordPress 5.5.0 (https://make.wordpress.org/core/2020/07/30/block-api-updates-in-5-5/).
- Set the minimum required version of WordPress to 5.5.0 to ensure that block is correctly registered with new block categories.

## 0.16.0 (2020-06-25)

### New Feature
Expand Down
2 changes: 1 addition & 1 deletion packages/create-block/lib/prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const category = {
type: 'list',
name: 'category',
message: 'The category name to help users browse and discover your block:',
choices: [ 'common', 'embed', 'formatting', 'layout', 'widgets' ],
choices: [ 'text', 'media', 'design', 'widgets', 'embed' ],
};

const author = {
Expand Down
4 changes: 2 additions & 2 deletions packages/create-block/lib/templates/es5/readme.txt.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Contributors: {{author}}
{{/author}}
Tags: block
Requires at least: 5.3.2
Tested up to: 5.4.1
Requires at least: 5.5.0
Tested up to: 5.5.1
Stable tag: {{version}}
Requires PHP: 7.0.0
{{#license}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Contributors: {{author}}
{{/author}}
Tags: block
Requires at least: 5.3.2
Tested up to: 5.4.1
Requires at least: 5.5.0
Tested up to: 5.5.1
Stable tag: {{version}}
Requires PHP: 7.0.0
{{#license}}
Expand Down

0 comments on commit 8fde3b5

Please sign in to comment.