Skip to content

Commit

Permalink
Version section update (#38937)
Browse files Browse the repository at this point in the history
* Version section update 

Added a little bit more information on the version section. Currently, it only discusses the v1 which is not valid anymore.

* Update docs/how-to-guides/themes/theme-json.md

* Update docs/how-to-guides/themes/theme-json.md

Co-authored-by: André <583546+oandregal@users.noreply.github.com>
  • Loading branch information
HasnainAshfaq and oandregal authored Feb 21, 2022
1 parent d385b37 commit 40aca04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/how-to-guides/themes/theme-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ This specification is the same for the three different origins that use this for
```

### Version
This field describes the format of the `theme.json` file. The current version is [v2](https://developer.wordpress.org/block-editor/reference-guides/theme-json-reference/theme-json-living/), [introduced in WordPress 5.9](https://make.wordpress.org/core/2022/01/08/updates-for-settings-styles-and-theme-json/). It also works with the current Gutenberg plugin.

This field describes the format of the `theme.json` file. The current and only version is 1.
If you have used [v1](https://developer.wordpress.org/block-editor/reference-guides/theme-json-reference/theme-json-v1/) previously, you don’t need to update the version in the v1 file to v2, as it’ll be [migrated](https://developer.wordpress.org/block-editor/reference-guides/theme-json-reference/theme-json-migrations/) into v2 at runtime for you.

WordPress 5.8 will ignore the contents of any `theme.json` whose version is not equals to the current. Should the Gutenberg plugin need it, it'll update the version and will add the corresponding migration mechanisms from older versions.

### Settings

Expand Down

0 comments on commit 40aca04

Please sign in to comment.