Skip to content

Commit

Permalink
Switch redirect in create-block and docs (#36316)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz authored Nov 9, 2021
1 parent d8ffbf6 commit a9b7e98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/reference-guides/block-api/block-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Starting in WordPress 5.8 release, we encourage using the `block.json` metadata

```json
{
"$schema": "https://json.schemastore.org/block.json",
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "my-plugin/notice",
"title": "Notice",
Expand Down Expand Up @@ -61,7 +61,7 @@ The [WordPress Plugins Directory](https://wordpress.org/plugins/) can detect `bl
Development is improved by using a defined schema definition file. Supported editors can provide help like tooltips, autocomplete, and schema validation. To use the schema, add the following to the top of the `block.json`.

```json
"$schema": "https://json.schemastore.org/block.json"
"$schema": "https://schemas.wp.org/trunk/block.json"
```

## Block registration
Expand Down
2 changes: 1 addition & 1 deletion packages/create-block/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ module.exports = {

The following configurable variables are used with the template files. Template authors can change default values to use when users don't provide their data:

- `$schema` (default: `https://json.schemastore.org/block.json`)
- `$schema` (default: `https://schemas.wp.org/trunk/block.json`)
- `apiVersion` (default: `2`) - see https://make.wordpress.org/core/2020/11/18/block-api-version-2/.
- `slug` (no default)
- `namespace` (default: `'create-block'`)
Expand Down
2 changes: 1 addition & 1 deletion packages/create-block/lib/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const getBlockTemplate = async ( templateName ) => {

const getDefaultValues = ( blockTemplate ) => {
return {
$schema: 'https://json.schemastore.org/block.json',
$schema: 'https://schemas.wp.org/trunk/block.json',
apiVersion: 2,
namespace: 'create-block',
category: 'widgets',
Expand Down

0 comments on commit a9b7e98

Please sign in to comment.