Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schemas: Update schema URL to wp.org domain #36316

Merged
merged 1 commit into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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