From 40aca0452ec1fb939ac7ed35c056d27455ac2f19 Mon Sep 17 00:00:00 2001 From: Hasnain Ashfaq Date: Mon, 21 Feb 2022 15:09:52 +0500 Subject: [PATCH] Version section update (#38937) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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> --- docs/how-to-guides/themes/theme-json.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/how-to-guides/themes/theme-json.md b/docs/how-to-guides/themes/theme-json.md index 3a9d20d50a70e5..15c0aaef27a299 100644 --- a/docs/how-to-guides/themes/theme-json.md +++ b/docs/how-to-guides/themes/theme-json.md @@ -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