块编辑器开发文档

WordPress 中的 Gutenberg 版本

💡 云策文档标注

概述

本文档提供了 WordPress 主要版本中集成的 Gutenberg 版本的规范列表,旨在帮助开发者更好地调试问题和报告 bug。文档还解释了在 WordPress 测试版和点版本期间,可能会包含后续 Gutenberg 版本的特定 bug 修复。

关键要点

  • 每个 WordPress 主要版本都包含一个特定的 Gutenberg 版本,文档列出了从 WordPress 5.0 到 7.0 的对应关系。
  • 在 WordPress 测试版和点版本(如 6.8.1)中,可能会添加后续 Gutenberg 版本的 bug 修复,但基础版本保持不变。
  • 如需了解 Gutenberg 版本的详细内容,建议查阅 Make Core 上的发布说明。
  • 如果发现文档有误,请在 WordPress.org Slack 的 #core-editor 频道中提出。

📄 原文内容

With each major release of WordPress a new version of Gutenberg is included. This has caused confusion over time as people have tried to figure out how to best debug problems and report bugs appropriately. To make this easier we have made this document to serve as a canonical list of the Gutenberg versions integrated into each major WordPress release. Of note, during the beta period of a WordPress release, additional bug fixes from later Gutenberg releases than those noted are added into the WordPress release where it is needed. If you want details about what’s in each Gutenberg release outside of the high level items shared as part of major WordPress releases, please review the release notes shared on Make Core.

Also note that during WordPress point versions (e.g. 6.8.1, 6.8.2, etc.) additional bug fixes from later Gutenberg releases than those noted are added into the WordPress release where it is needed. So for example, WordPress 6.8 ships with Gutenberg 20.4, but 6.8.1, 6.8.2, and 6.8.3 also include very specific bug fixes from Gutenberg versions after 20.4. But the base version remains 20.4. This started to apply since Gutenberg 4.8 and WordPress 5.1 onwards.

If anything looks incorrect here, please bring it up in #core-editor in WordPress.org slack.

Gutenberg Version WordPress Version
22.6 7.0.X
21.9 6.9.X
20.4 6.8.X
19.3 6.7.X
18.5 6.6.X
17.7 6.5.X
16.7 6.4.X
16.1 6.3.X
15.1 6.2.X
14.1 6.1.X
13.0 6.0.X
11.9 5.9.X
10.7 5.8.X
9.9 5.7.X
9.2 5.6.X
8.5 5.5.X
7.5 5.4.X
6.5 5.3.X
5.4 5.2.X
4.8 5.1.X
4.7.1 5.0.3-5.0.22
4.7.0 5.0.2
4.6.1 5.0.0-5.0.1