Gutenberg - Version 12.0.1

Version Description

Download this release

Release Info

Developer gutenbergplugin
Plugin Icon 128x128 Gutenberg
Version 12.0.1
Comparing to
See all releases

Code changes from version 12.0.0 to 12.0.1

changelog.txt CHANGED
@@ -1,180 +1,188 @@
1
  == Changelog ==
2
 
3
- = 12.0.0 =
4
 
5
- ### Features
6
-
7
- - Disable BottomSheet swipe gesture to navigate backwards. ([36271](https://github.com/WordPress/gutenberg/pull/36271))
8
-
9
-
10
  ### Enhancements
11
 
12
- #### Block Library
13
- - Move WP_REST_Block_Navigation_Areas_Controller from Gutenberg to Core. ([36374](https://github.com/WordPress/gutenberg/pull/36374))
14
- - Let Featured Image block inherit dimensions, look like a placeholder. ([36517](https://github.com/WordPress/gutenberg/pull/36517))
15
- - Change all the uses of "website" to "site". ([36220](https://github.com/WordPress/gutenberg/pull/36220))
16
- - Enable Previews for Navigation Link Blocks. ([36412](https://github.com/WordPress/gutenberg/pull/36412))
17
-
18
- #### Site Editor
19
- - Add welcome guide. ([36172](https://github.com/WordPress/gutenberg/pull/36172))
20
- - Update back button URL. ([36313](https://github.com/WordPress/gutenberg/pull/36313))
21
- - Improve compatiblity with menu endpoints WordPress 5.9. ([36372](https://github.com/WordPress/gutenberg/pull/36372))
22
- - React to any errors coming up in gutenberg_migrate_menu_to_navigation_post. ([36461](https://github.com/WordPress/gutenberg/pull/36461))
23
-
24
- #### Block API
25
- - Update schema to require either a type or an enum. ([36267](https://github.com/WordPress/gutenberg/pull/36267))
26
- - Add `_wp_array_set` and `_wp_to_kebab_case` to 5.8 compat. ([36399](https://github.com/WordPress/gutenberg/pull/36399))
27
-
28
- #### Design Tools
29
- - Paragraph: Merge text settings into typography panel. ([36334](https://github.com/WordPress/gutenberg/pull/36334))
30
-
31
- #### Build Tooling
32
- - Add TypeScript for builds and tests. ([36260](https://github.com/WordPress/gutenberg/pull/36260))
33
- - stylelint-config: Widen the acceptable version range for the 'stylelint' peerDependency. ([36518](https://github.com/WordPress/gutenberg/pull/36518))
34
- - Update Babel packages to 7.16 version. ([36244](https://github.com/WordPress/gutenberg/pull/36244))
35
-
36
- #### Style Variations
37
- - Block Styles: Show style preview when hovered or focused. ([34522](https://github.com/WordPress/gutenberg/pull/34522))
38
-
39
- #### Schema
40
- - Update schema URL to wp.org domain. ([36316](https://github.com/WordPress/gutenberg/pull/36316))
41
- - Allow block.json attribute type to be an array. ([36295](https://github.com/WordPress/gutenberg/pull/36295))
42
-
43
- ### Bug Fixes
44
-
45
- - Chore: Fix small typos on the rest endpoints. ([36272](https://github.com/WordPress/gutenberg/pull/36272))
46
- - DEWP: Fix deprecation warning. ([36285](https://github.com/WordPress/gutenberg/pull/36285))
47
- - Fix mobile horizontal scrollbar. ([36567](https://github.com/WordPress/gutenberg/pull/36567))
48
- - Fix schema to allow for custom blocks in theme.json. ([36341](https://github.com/WordPress/gutenberg/pull/36341))
49
- - Theme switch on the global styles rest api unit test. ([36277](https://github.com/WordPress/gutenberg/pull/36277))
50
- - Polish metabox container. ([36297](https://github.com/WordPress/gutenberg/pull/36297))
51
-
52
- #### Block Library
53
- - Fix background colours in nested submenus. ([36476](https://github.com/WordPress/gutenberg/pull/36476))
54
- - Fix colour rendering in Navigation overlay. ([36479](https://github.com/WordPress/gutenberg/pull/36479))
55
- - Fix duplicate custom classnames in navigation submenu block. ([36478](https://github.com/WordPress/gutenberg/pull/36478))
56
- - Fix submenu justification and spacer orientation. ([36340](https://github.com/WordPress/gutenberg/pull/36340))
57
- - Group - Fix overzealous regex when restoring inner containers. ([36221](https://github.com/WordPress/gutenberg/pull/36221))
58
- - Hide visilibility and status for navigation posts. ([36363](https://github.com/WordPress/gutenberg/pull/36363))
59
- - Nav block menu switcher - decode HTML entities and utilise accessible markup pattern. ([36397](https://github.com/WordPress/gutenberg/pull/36397))
60
- - Navigation: Fix click-button size, submenu directions, scrollbars. ([36215](https://github.com/WordPress/gutenberg/pull/36215))
61
- - Page List block: Fix space before `href` attribute. ([36505](https://github.com/WordPress/gutenberg/pull/36505))
62
- - Page List: Use core entities instead of direct apiFetch. ([36531](https://github.com/WordPress/gutenberg/pull/36531))
63
- - Post Comments Form: Ensure typography styles are applied to child elements. ([36425](https://github.com/WordPress/gutenberg/pull/36425))
64
- - Post title block default CSS: Add a break-word rule by default. ([35703](https://github.com/WordPress/gutenberg/pull/35703))
65
-
66
- #### Block API
67
- - Use firstChild and lastChild when parsing lists from MS Word. ([36019](https://github.com/WordPress/gutenberg/pull/36019))
68
-
69
- #### Mobile
70
- - [Android] Synchronize content retrieval over the bridge. ([36072](https://github.com/WordPress/gutenberg/pull/36072))
71
-
72
- #### Full Site Editing
73
- - Fix layout shift in `core/post-featured-image` block with `isLink` enabled. ([36552](https://github.com/WordPress/gutenberg/pull/36552))
74
- - Template Part Block: Add some guards. ([36324](https://github.com/WordPress/gutenberg/pull/36324))
75
- - Chore: Add rewrite false to global styles CPT. ([36273](https://github.com/WordPress/gutenberg/pull/36273))
76
- - Revert "theme.json: Adds a setting property that enables some other ones". ([36477](https://github.com/WordPress/gutenberg/pull/36477))
77
- - Update more references to __experimental menu endpoints to make them stable. ([36386](https://github.com/WordPress/gutenberg/pull/36386))
78
-
79
- #### Site Editor
80
- - Fix site editor reset styles in WP 5.9. ([36390](https://github.com/WordPress/gutenberg/pull/36390))
81
- - Site Editor - prevent loading state from showing the admin menu. ([36455](https://github.com/WordPress/gutenberg/pull/36455))
82
-
83
- #### Themes
84
- - Add the ability to opt-out of Core color palette V2. ([36492](https://github.com/WordPress/gutenberg/pull/36492))
85
-
86
- #### Build Tooling
87
- - Fix not transforming logical assignments for packages. ([36484](https://github.com/WordPress/gutenberg/pull/36484))
88
-
89
- #### Global Styles
90
- - Replace get_theme_file_path in theme_has_support. ([36398](https://github.com/WordPress/gutenberg/pull/36398))
91
-
92
- #### Block Editor
93
- - Strip meta tags from pasted links in Chromium. ([36356](https://github.com/WordPress/gutenberg/pull/36356))
94
- - Add `webp` extension in `filePasteHandler` and `getPasteEventData`. ([36361](https://github.com/WordPress/gutenberg/pull/36361))
95
-
96
- #### CSS & Styling
97
- - Update theme styles for the code block. ([36282](https://github.com/WordPress/gutenberg/pull/36282))
98
-
99
-
100
- ### Experiments
101
-
102
  #### Global Styles
103
- - Chore: Add comment to Remove filter to allow WP variables after min version is 5.8. ([36281](https://github.com/WordPress/gutenberg/pull/36281))
104
- - Chore: Update: Centralize safe_style_css usages. ([36280](https://github.com/WordPress/gutenberg/pull/36280))
105
- - Add block icon next to blocks list. ([36520](https://github.com/WordPress/gutenberg/pull/36520))
106
- - theme.json: Adds a setting property that enables some other ones. ([36246](https://github.com/WordPress/gutenberg/pull/36246))
107
-
108
- #### Block Library
109
- - Apply i18n functions to Nav block menu drops when selecting existing Menu. ([36301](https://github.com/WordPress/gutenberg/pull/36301))
110
- - Navigation: Refactor and simplify setup state. ([36375](https://github.com/WordPress/gutenberg/pull/36375))
111
- - Rename fse_navigation_area to wp_navigation_area. ([36460](https://github.com/WordPress/gutenberg/pull/36460))
112
- - Return wp error from wp_insert_post. ([36483](https://github.com/WordPress/gutenberg/pull/36483))
113
-
114
- #### Full Site Editing
115
- - Add template_type guards. ([36318](https://github.com/WordPress/gutenberg/pull/36318))
116
-
117
-
118
- ### Documentation
119
-
120
- - "npm install" suggestion provides a better learning experience. ([36217](https://github.com/WordPress/gutenberg/pull/36217))
121
- - Added specific links to agenda and notes posts related to core editor meetings. ([36199](https://github.com/WordPress/gutenberg/pull/36199))
122
- - Schemastore - $schema is VS Code-specific. ([36179](https://github.com/WordPress/gutenberg/pull/36179))
123
- - Update GIF image in documentation with wp.org schema URL. ([36456](https://github.com/WordPress/gutenberg/pull/36456))
124
- - Update Versions in WordPress to include 5.9. ([36156](https://github.com/WordPress/gutenberg/pull/36156))
125
- - Update combobox-control component readme. ([36413](https://github.com/WordPress/gutenberg/pull/36413))
126
- - Update theme.json schema to refer to wp.org URL. ([36332](https://github.com/WordPress/gutenberg/pull/36332))
127
-
128
- #### Components
129
- - Update `@wordpress/components` changelog. ([36448](https://github.com/WordPress/gutenberg/pull/36448))
130
-
131
-
132
- ### Code Quality
133
-
134
- - Change @package to WordPress in block-library. ([36494](https://github.com/WordPress/gutenberg/pull/36494))
135
- - postcss-themes: Fix PostCSS 8 deprecation warning. ([36284](https://github.com/WordPress/gutenberg/pull/36284))
136
-
137
- #### Navigation Screen
138
- - Prepare navigation php code for core patch. ([36336](https://github.com/WordPress/gutenberg/pull/36336))
139
-
140
- #### Block Library
141
- - Add block.json schema defintion to core blocks. ([35900](https://github.com/WordPress/gutenberg/pull/35900))
142
-
143
-
144
- ### Tools
145
-
146
- #### Testing
147
- - E2E: Add more Cover block tests. ([36321](https://github.com/WordPress/gutenberg/pull/36321))
148
- - Fix Performance CI tests and make them always use the latest major as base branch. ([36463](https://github.com/WordPress/gutenberg/pull/36463))
149
- - Fix failing tests and compatibility with 5.9. ([36368](https://github.com/WordPress/gutenberg/pull/36368))
150
- - Add integration tests with core blocks schema validation. ([36351](https://github.com/WordPress/gutenberg/pull/36351))
151
- - Skip flaky image block test. ([36446](https://github.com/WordPress/gutenberg/pull/36446))
152
-
153
- #### Icons
154
- - Add the missing comment edit link icon. ([36565](https://github.com/WordPress/gutenberg/pull/36565))
155
- - Remove hard coded color from query pagination icons. ([35837](https://github.com/WordPress/gutenberg/pull/35837))
156
- - Remove hard-coded values on icons. ([36564](https://github.com/WordPress/gutenberg/pull/36564))
157
-
158
- #### Components
159
- - ToolsPanel: Allow additional props on ToolsPanel. ([36428](https://github.com/WordPress/gutenberg/pull/36428))
160
- - Typography Panel: Make letter spacing jsDoc and prop use consistent. ([36367](https://github.com/WordPress/gutenberg/pull/36367))
161
-
162
- #### Block Library
163
- - Remove textdomain from calendar block. ([36500](https://github.com/WordPress/gutenberg/pull/36500))
164
-
165
- #### Site Editor
166
- - Update site editor title truncation. ([36436](https://github.com/WordPress/gutenberg/pull/36436))
167
-
168
- #### Design Tools
169
- - Letter spacing: Update label copy. ([36385](https://github.com/WordPress/gutenberg/pull/36385))
170
-
171
- #### Block API
172
- - Add pattern to `name` key in block.json Schema. ([36343](https://github.com/WordPress/gutenberg/pull/36343))
173
-
174
- #### Data Layer
175
- - Data: Clean up registerGenericStore param names. ([36300](https://github.com/WordPress/gutenberg/pull/36300))
176
-
177
- #### Template Editor
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  - Change edit links for templates and template parts. ([36294](https://github.com/WordPress/gutenberg/pull/36294))
179
 
180
 
1
  == Changelog ==
2
 
3
+ = 12.0.1 =
4
 
 
 
 
 
 
5
  ### Enhancements
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  #### Global Styles
8
+ - Add caching to `WP_Theme_JSON_Resolver_Gutenberg::get_user_data_from_custom_post_type()`. ([36584](https://github.com/WordPress/gutenberg/pull/36584))
9
+
10
+
11
+ = 12.0.0 =
12
+
13
+ ### Features
14
+
15
+ - Disable BottomSheet swipe gesture to navigate backwards. ([36271](https://github.com/WordPress/gutenberg/pull/36271))
16
+
17
+
18
+ ### Enhancements
19
+
20
+ #### Block Library
21
+ - Move WP_REST_Block_Navigation_Areas_Controller from Gutenberg to Core. ([36374](https://github.com/WordPress/gutenberg/pull/36374))
22
+ - Let Featured Image block inherit dimensions, look like a placeholder. ([36517](https://github.com/WordPress/gutenberg/pull/36517))
23
+ - Change all the uses of "website" to "site". ([36220](https://github.com/WordPress/gutenberg/pull/36220))
24
+ - Enable Previews for Navigation Link Blocks. ([36412](https://github.com/WordPress/gutenberg/pull/36412))
25
+
26
+ #### Site Editor
27
+ - Add welcome guide. ([36172](https://github.com/WordPress/gutenberg/pull/36172))
28
+ - Update back button URL. ([36313](https://github.com/WordPress/gutenberg/pull/36313))
29
+ - Improve compatiblity with menu endpoints WordPress 5.9. ([36372](https://github.com/WordPress/gutenberg/pull/36372))
30
+ - React to any errors coming up in gutenberg_migrate_menu_to_navigation_post. ([36461](https://github.com/WordPress/gutenberg/pull/36461))
31
+
32
+ #### Block API
33
+ - Update schema to require either a type or an enum. ([36267](https://github.com/WordPress/gutenberg/pull/36267))
34
+ - Add `_wp_array_set` and `_wp_to_kebab_case` to 5.8 compat. ([36399](https://github.com/WordPress/gutenberg/pull/36399))
35
+
36
+ #### Design Tools
37
+ - Paragraph: Merge text settings into typography panel. ([36334](https://github.com/WordPress/gutenberg/pull/36334))
38
+
39
+ #### Build Tooling
40
+ - Add TypeScript for builds and tests. ([36260](https://github.com/WordPress/gutenberg/pull/36260))
41
+ - stylelint-config: Widen the acceptable version range for the 'stylelint' peerDependency. ([36518](https://github.com/WordPress/gutenberg/pull/36518))
42
+ - Update Babel packages to 7.16 version. ([36244](https://github.com/WordPress/gutenberg/pull/36244))
43
+
44
+ #### Style Variations
45
+ - Block Styles: Show style preview when hovered or focused. ([34522](https://github.com/WordPress/gutenberg/pull/34522))
46
+
47
+ #### Schema
48
+ - Update schema URL to wp.org domain. ([36316](https://github.com/WordPress/gutenberg/pull/36316))
49
+ - Allow block.json attribute type to be an array. ([36295](https://github.com/WordPress/gutenberg/pull/36295))
50
+
51
+ ### Bug Fixes
52
+
53
+ - Chore: Fix small typos on the rest endpoints. ([36272](https://github.com/WordPress/gutenberg/pull/36272))
54
+ - DEWP: Fix deprecation warning. ([36285](https://github.com/WordPress/gutenberg/pull/36285))
55
+ - Fix mobile horizontal scrollbar. ([36567](https://github.com/WordPress/gutenberg/pull/36567))
56
+ - Fix schema to allow for custom blocks in theme.json. ([36341](https://github.com/WordPress/gutenberg/pull/36341))
57
+ - Theme switch on the global styles rest api unit test. ([36277](https://github.com/WordPress/gutenberg/pull/36277))
58
+ - Polish metabox container. ([36297](https://github.com/WordPress/gutenberg/pull/36297))
59
+
60
+ #### Block Library
61
+ - Fix background colours in nested submenus. ([36476](https://github.com/WordPress/gutenberg/pull/36476))
62
+ - Fix colour rendering in Navigation overlay. ([36479](https://github.com/WordPress/gutenberg/pull/36479))
63
+ - Fix duplicate custom classnames in navigation submenu block. ([36478](https://github.com/WordPress/gutenberg/pull/36478))
64
+ - Fix submenu justification and spacer orientation. ([36340](https://github.com/WordPress/gutenberg/pull/36340))
65
+ - Group - Fix overzealous regex when restoring inner containers. ([36221](https://github.com/WordPress/gutenberg/pull/36221))
66
+ - Hide visilibility and status for navigation posts. ([36363](https://github.com/WordPress/gutenberg/pull/36363))
67
+ - Nav block menu switcher - decode HTML entities and utilise accessible markup pattern. ([36397](https://github.com/WordPress/gutenberg/pull/36397))
68
+ - Navigation: Fix click-button size, submenu directions, scrollbars. ([36215](https://github.com/WordPress/gutenberg/pull/36215))
69
+ - Page List block: Fix space before `href` attribute. ([36505](https://github.com/WordPress/gutenberg/pull/36505))
70
+ - Page List: Use core entities instead of direct apiFetch. ([36531](https://github.com/WordPress/gutenberg/pull/36531))
71
+ - Post Comments Form: Ensure typography styles are applied to child elements. ([36425](https://github.com/WordPress/gutenberg/pull/36425))
72
+ - Post title block default CSS: Add a break-word rule by default. ([35703](https://github.com/WordPress/gutenberg/pull/35703))
73
+
74
+ #### Block API
75
+ - Use firstChild and lastChild when parsing lists from MS Word. ([36019](https://github.com/WordPress/gutenberg/pull/36019))
76
+
77
+ #### Mobile
78
+ - [Android] Synchronize content retrieval over the bridge. ([36072](https://github.com/WordPress/gutenberg/pull/36072))
79
+
80
+ #### Full Site Editing
81
+ - Fix layout shift in `core/post-featured-image` block with `isLink` enabled. ([36552](https://github.com/WordPress/gutenberg/pull/36552))
82
+ - Template Part Block: Add some guards. ([36324](https://github.com/WordPress/gutenberg/pull/36324))
83
+ - Chore: Add rewrite false to global styles CPT. ([36273](https://github.com/WordPress/gutenberg/pull/36273))
84
+ - Revert "theme.json: Adds a setting property that enables some other ones". ([36477](https://github.com/WordPress/gutenberg/pull/36477))
85
+ - Update more references to __experimental menu endpoints to make them stable. ([36386](https://github.com/WordPress/gutenberg/pull/36386))
86
+
87
+ #### Site Editor
88
+ - Fix site editor reset styles in WP 5.9. ([36390](https://github.com/WordPress/gutenberg/pull/36390))
89
+ - Site Editor - prevent loading state from showing the admin menu. ([36455](https://github.com/WordPress/gutenberg/pull/36455))
90
+
91
+ #### Themes
92
+ - Add the ability to opt-out of Core color palette V2. ([36492](https://github.com/WordPress/gutenberg/pull/36492))
93
+
94
+ #### Build Tooling
95
+ - Fix not transforming logical assignments for packages. ([36484](https://github.com/WordPress/gutenberg/pull/36484))
96
+
97
+ #### Global Styles
98
+ - Replace get_theme_file_path in theme_has_support. ([36398](https://github.com/WordPress/gutenberg/pull/36398))
99
+
100
+ #### Block Editor
101
+ - Strip meta tags from pasted links in Chromium. ([36356](https://github.com/WordPress/gutenberg/pull/36356))
102
+ - Add `webp` extension in `filePasteHandler` and `getPasteEventData`. ([36361](https://github.com/WordPress/gutenberg/pull/36361))
103
+
104
+ #### CSS & Styling
105
+ - Update theme styles for the code block. ([36282](https://github.com/WordPress/gutenberg/pull/36282))
106
+
107
+
108
+ ### Experiments
109
+
110
+ #### Global Styles
111
+ - Chore: Add comment to Remove filter to allow WP variables after min version is 5.8. ([36281](https://github.com/WordPress/gutenberg/pull/36281))
112
+ - Chore: Update: Centralize safe_style_css usages. ([36280](https://github.com/WordPress/gutenberg/pull/36280))
113
+ - Add block icon next to blocks list. ([36520](https://github.com/WordPress/gutenberg/pull/36520))
114
+ - theme.json: Adds a setting property that enables some other ones. ([36246](https://github.com/WordPress/gutenberg/pull/36246))
115
+
116
+ #### Block Library
117
+ - Apply i18n functions to Nav block menu drops when selecting existing Menu. ([36301](https://github.com/WordPress/gutenberg/pull/36301))
118
+ - Navigation: Refactor and simplify setup state. ([36375](https://github.com/WordPress/gutenberg/pull/36375))
119
+ - Rename fse_navigation_area to wp_navigation_area. ([36460](https://github.com/WordPress/gutenberg/pull/36460))
120
+ - Return wp error from wp_insert_post. ([36483](https://github.com/WordPress/gutenberg/pull/36483))
121
+
122
+ #### Full Site Editing
123
+ - Add template_type guards. ([36318](https://github.com/WordPress/gutenberg/pull/36318))
124
+
125
+
126
+ ### Documentation
127
+
128
+ - "npm install" suggestion provides a better learning experience. ([36217](https://github.com/WordPress/gutenberg/pull/36217))
129
+ - Added specific links to agenda and notes posts related to core editor meetings. ([36199](https://github.com/WordPress/gutenberg/pull/36199))
130
+ - Schemastore - $schema is VS Code-specific. ([36179](https://github.com/WordPress/gutenberg/pull/36179))
131
+ - Update GIF image in documentation with wp.org schema URL. ([36456](https://github.com/WordPress/gutenberg/pull/36456))
132
+ - Update Versions in WordPress to include 5.9. ([36156](https://github.com/WordPress/gutenberg/pull/36156))
133
+ - Update combobox-control component readme. ([36413](https://github.com/WordPress/gutenberg/pull/36413))
134
+ - Update theme.json schema to refer to wp.org URL. ([36332](https://github.com/WordPress/gutenberg/pull/36332))
135
+
136
+ #### Components
137
+ - Update `@wordpress/components` changelog. ([36448](https://github.com/WordPress/gutenberg/pull/36448))
138
+
139
+
140
+ ### Code Quality
141
+
142
+ - Change @package to WordPress in block-library. ([36494](https://github.com/WordPress/gutenberg/pull/36494))
143
+ - postcss-themes: Fix PostCSS 8 deprecation warning. ([36284](https://github.com/WordPress/gutenberg/pull/36284))
144
+
145
+ #### Navigation Screen
146
+ - Prepare navigation php code for core patch. ([36336](https://github.com/WordPress/gutenberg/pull/36336))
147
+
148
+ #### Block Library
149
+ - Add block.json schema defintion to core blocks. ([35900](https://github.com/WordPress/gutenberg/pull/35900))
150
+
151
+
152
+ ### Tools
153
+
154
+ #### Testing
155
+ - E2E: Add more Cover block tests. ([36321](https://github.com/WordPress/gutenberg/pull/36321))
156
+ - Fix Performance CI tests and make them always use the latest major as base branch. ([36463](https://github.com/WordPress/gutenberg/pull/36463))
157
+ - Fix failing tests and compatibility with 5.9. ([36368](https://github.com/WordPress/gutenberg/pull/36368))
158
+ - Add integration tests with core blocks schema validation. ([36351](https://github.com/WordPress/gutenberg/pull/36351))
159
+ - Skip flaky image block test. ([36446](https://github.com/WordPress/gutenberg/pull/36446))
160
+
161
+ #### Icons
162
+ - Add the missing comment edit link icon. ([36565](https://github.com/WordPress/gutenberg/pull/36565))
163
+ - Remove hard coded color from query pagination icons. ([35837](https://github.com/WordPress/gutenberg/pull/35837))
164
+ - Remove hard-coded values on icons. ([36564](https://github.com/WordPress/gutenberg/pull/36564))
165
+
166
+ #### Components
167
+ - ToolsPanel: Allow additional props on ToolsPanel. ([36428](https://github.com/WordPress/gutenberg/pull/36428))
168
+ - Typography Panel: Make letter spacing jsDoc and prop use consistent. ([36367](https://github.com/WordPress/gutenberg/pull/36367))
169
+
170
+ #### Block Library
171
+ - Remove textdomain from calendar block. ([36500](https://github.com/WordPress/gutenberg/pull/36500))
172
+
173
+ #### Site Editor
174
+ - Update site editor title truncation. ([36436](https://github.com/WordPress/gutenberg/pull/36436))
175
+
176
+ #### Design Tools
177
+ - Letter spacing: Update label copy. ([36385](https://github.com/WordPress/gutenberg/pull/36385))
178
+
179
+ #### Block API
180
+ - Add pattern to `name` key in block.json Schema. ([36343](https://github.com/WordPress/gutenberg/pull/36343))
181
+
182
+ #### Data Layer
183
+ - Data: Clean up registerGenericStore param names. ([36300](https://github.com/WordPress/gutenberg/pull/36300))
184
+
185
+ #### Template Editor
186
  - Change edit links for templates and template parts. ([36294](https://github.com/WordPress/gutenberg/pull/36294))
187
 
188
 
gutenberg.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Printing since 1440. This is the development plugin for the new block editor in core.
6
  * Requires at least: 5.7
7
  * Requires PHP: 5.6
8
- * Version: 12.0.0
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
@@ -13,8 +13,8 @@
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
- define( 'GUTENBERG_VERSION', '12.0.0' );
17
- define( 'GUTENBERG_GIT_COMMIT', 'f6bbb339af3e66e58dbad608bbc7fb0eb45c3122' );
18
  ### END AUTO-GENERATED DEFINES
19
 
20
  gutenberg_pre_init();
5
  * Description: Printing since 1440. This is the development plugin for the new block editor in core.
6
  * Requires at least: 5.7
7
  * Requires PHP: 5.6
8
+ * Version: 12.0.1
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
+ define( 'GUTENBERG_VERSION', '12.0.1' );
17
+ define( 'GUTENBERG_GIT_COMMIT', '5469411715871c2d2f33b2501c571a5cadafee93' );
18
  ### END AUTO-GENERATED DEFINES
19
 
20
  gutenberg_pre_init();
lib/class-wp-theme-json-resolver-gutenberg.php CHANGED
@@ -170,33 +170,49 @@ class WP_Theme_JSON_Resolver_Gutenberg {
170
  *
171
  * It can also create and return a new draft CPT.
172
  *
173
- * @param bool $should_create_cpt Whether a new CPT should be created if no one was found.
174
- * False by default.
175
- * @param array $post_status_filter Filter CPT by post status.
176
- * ['publish'] by default, so it only fetches published posts.
 
 
177
  *
178
  * @return array Custom Post Type for the user's origin config.
179
  */
180
- private static function get_user_data_from_custom_post_type( $should_create_cpt = false, $post_status_filter = array( 'publish' ) ) {
 
 
 
181
  $user_cpt = array();
182
  $post_type_filter = 'wp_global_styles';
183
- $recent_posts = wp_get_recent_posts(
184
- array(
185
- 'numberposts' => 1,
186
- 'orderby' => 'date',
187
- 'order' => 'desc',
188
- 'post_type' => $post_type_filter,
189
- 'post_status' => $post_status_filter,
190
- 'tax_query' => array(
191
- array(
192
- 'taxonomy' => 'wp_theme',
193
- 'field' => 'name',
194
- 'terms' => wp_get_theme()->get_stylesheet(),
195
- ),
196
  ),
197
- )
198
  );
199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  if ( is_array( $recent_posts ) && ( count( $recent_posts ) === 1 ) ) {
201
  $user_cpt = $recent_posts[0];
202
  } elseif ( $should_create_cpt ) {
@@ -215,6 +231,8 @@ class WP_Theme_JSON_Resolver_Gutenberg {
215
  );
216
  $user_cpt = get_post( $cpt_post_id, ARRAY_A );
217
  }
 
 
218
 
219
  return $user_cpt;
220
  }
@@ -230,7 +248,7 @@ class WP_Theme_JSON_Resolver_Gutenberg {
230
  }
231
 
232
  $config = array();
233
- $user_cpt = self::get_user_data_from_custom_post_type();
234
  if ( array_key_exists( 'post_content', $user_cpt ) ) {
235
  $decoded_data = json_decode( $user_cpt['post_content'], true );
236
 
@@ -331,7 +349,7 @@ class WP_Theme_JSON_Resolver_Gutenberg {
331
  return self::$user_custom_post_type_id;
332
  }
333
 
334
- $user_cpt = self::get_user_data_from_custom_post_type( true );
335
  if ( array_key_exists( 'ID', $user_cpt ) ) {
336
  self::$user_custom_post_type_id = $user_cpt['ID'];
337
  }
170
  *
171
  * It can also create and return a new draft CPT.
172
  *
173
+ * @param WP_Theme $theme The theme object.
174
+ * If empty, it defaults to the current theme.
175
+ * @param bool $should_create_cpt Whether a new CPT should be created if no one was found.
176
+ * False by default.
177
+ * @param array $post_status_filter Filter CPT by post status.
178
+ * ['publish'] by default, so it only fetches published posts.
179
  *
180
  * @return array Custom Post Type for the user's origin config.
181
  */
182
+ public static function get_user_data_from_custom_post_type( $theme, $should_create_cpt = false, $post_status_filter = array( 'publish' ) ) {
183
+ if ( ! $theme instanceof WP_Theme ) {
184
+ $theme = wp_get_theme();
185
+ }
186
  $user_cpt = array();
187
  $post_type_filter = 'wp_global_styles';
188
+ $args = array(
189
+ 'numberposts' => 1,
190
+ 'orderby' => 'date',
191
+ 'order' => 'desc',
192
+ 'post_type' => $post_type_filter,
193
+ 'post_status' => $post_status_filter,
194
+ 'tax_query' => array(
195
+ array(
196
+ 'taxonomy' => 'wp_theme',
197
+ 'field' => 'name',
198
+ 'terms' => $theme->get_stylesheet(),
 
 
199
  ),
200
+ ),
201
  );
202
 
203
+ $cache_key = sprintf( 'wp_global_styles_%s', md5( serialize( $args ) ) );
204
+ $post_id = wp_cache_get( $cache_key );
205
+
206
+ if ( (int) $post_id > 0 ) {
207
+ return get_post( $post_id, ARRAY_A );
208
+ }
209
+
210
+ // Special case: '-1' is a results not found.
211
+ if ( -1 === $post_id && ! $should_create_cpt ) {
212
+ return $user_cpt;
213
+ }
214
+
215
+ $recent_posts = wp_get_recent_posts( $args );
216
  if ( is_array( $recent_posts ) && ( count( $recent_posts ) === 1 ) ) {
217
  $user_cpt = $recent_posts[0];
218
  } elseif ( $should_create_cpt ) {
231
  );
232
  $user_cpt = get_post( $cpt_post_id, ARRAY_A );
233
  }
234
+ $cache_expiration = $user_cpt ? DAY_IN_SECONDS : HOUR_IN_SECONDS;
235
+ wp_cache_set( $cache_key, $user_cpt ? $user_cpt['ID'] : -1, '', $cache_expiration );
236
 
237
  return $user_cpt;
238
  }
248
  }
249
 
250
  $config = array();
251
+ $user_cpt = self::get_user_data_from_custom_post_type( wp_get_theme() );
252
  if ( array_key_exists( 'post_content', $user_cpt ) ) {
253
  $decoded_data = json_decode( $user_cpt['post_content'], true );
254
 
349
  return self::$user_custom_post_type_id;
350
  }
351
 
352
+ $user_cpt = self::get_user_data_from_custom_post_type( wp_get_theme(), true );
353
  if ( array_key_exists( 'ID', $user_cpt ) ) {
354
  self::$user_custom_post_type_id = $user_cpt['ID'];
355
  }
lib/compat/wordpress-5.9/rest-active-global-styles.php CHANGED
@@ -16,22 +16,8 @@ function gutenberg_add_active_global_styles_link( $response, $theme ) {
16
  // This creates a record for the current theme if not existent.
17
  $id = WP_Theme_JSON_Resolver_Gutenberg::get_user_custom_post_type_id();
18
  } else {
19
- $wp_query_args = array(
20
- 'post_status' => 'publish',
21
- 'post_type' => 'wp_global_styles',
22
- 'posts_per_page' => 1,
23
- 'no_found_rows' => true,
24
- 'fields' => 'ids',
25
- 'tax_query' => array(
26
- array(
27
- 'taxonomy' => 'wp_theme',
28
- 'field' => 'name',
29
- 'terms' => $theme->get_stylesheet(),
30
- ),
31
- ),
32
- );
33
- $global_styles_query = new WP_Query( $wp_query_args );
34
- $id = ! empty( $global_styles_query->posts ) ? array_shift( $global_styles_query->posts ) : null;
35
  }
36
 
37
  if ( $id ) {
16
  // This creates a record for the current theme if not existent.
17
  $id = WP_Theme_JSON_Resolver_Gutenberg::get_user_custom_post_type_id();
18
  } else {
19
+ $user_cpt = WP_Theme_JSON_Resolver_Gutenberg::get_user_data_from_custom_post_type( $theme );
20
+ $id = isset( $user_cpt['ID'] ) ? $user_cpt['ID'] : null;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  }
22
 
23
  if ( $id ) {
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Gutenberg ===
2
  Contributors: matveb, joen, karmatosed
3
  Tested up to: 5.8
4
- Stable tag: 11.9.1
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
 
@@ -56,4 +56,4 @@ The four phases of the project are Editing, Customization, Collaboration, and Mu
56
 
57
  == Changelog ==
58
 
59
- To read the changelog for Gutenberg 12.0.0, please navigate to the <a href="https://github.com/WordPress/gutenberg/releases/tag/v12.0.0">release page</a>.
1
  === Gutenberg ===
2
  Contributors: matveb, joen, karmatosed
3
  Tested up to: 5.8
4
+ Stable tag: 12.0.0
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
 
56
 
57
  == Changelog ==
58
 
59
+ To read the changelog for Gutenberg 12.0.1, please navigate to the <a href="https://github.com/WordPress/gutenberg/releases/tag/v12.0.1">release page</a>.