Gutenberg - Version 14.5.2

Version Description

Download this release

Release Info

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

Code changes from version 14.5.1 to 14.5.2

changelog.txt CHANGED
@@ -1,6 +1,6 @@
1
  == Changelog ==
2
 
3
- = 14.5.1 =
4
 
5
 
6
 
@@ -8,7 +8,259 @@
8
 
9
  ### Bug Fixes
10
 
11
- - Fix: Prevent infinite loop in Tag Processor in certain truncated documents (https://github.com/WordPress/gutenberg/pull/45537)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
 
14
  = 14.5.0 =
1
  == Changelog ==
2
 
3
+ = 14.5.2 =
4
 
5
 
6
 
8
 
9
  ### Bug Fixes
10
 
11
+ - Tag Processor: Prevent bugs from pre-PHP8 strspn/strcspn behavior. ([45822](https://github.com/WordPress/gutenberg/pull/45822))
12
+
13
+ ## Contributors
14
+
15
+ The following contributors merged PRs in this release:
16
+
17
+ @dmsnell
18
+
19
+
20
+ = 14.6.0-rc.1 =
21
+
22
+ ## Changelog
23
+
24
+ ### Enhancements
25
+
26
+ #### Block Library
27
+ - Add color block support to latest posts. ([41874](https://github.com/WordPress/gutenberg/pull/41874))
28
+ - Adds a list view to the navigation block. ([45546](https://github.com/WordPress/gutenberg/pull/45546))
29
+ - Latest posts and latest comments: Add spacing support. ([45110](https://github.com/WordPress/gutenberg/pull/45110))
30
+ - Navigation Link: Add the URL field to the Navigation Link inspector controls. ([45751](https://github.com/WordPress/gutenberg/pull/45751))
31
+ - Reposition navigation selector. ([45555](https://github.com/WordPress/gutenberg/pull/45555))
32
+ - Make Author block selector to display all users instead of just 10. ([45640](https://github.com/WordPress/gutenberg/pull/45640))
33
+ - Columns: Add transform to unwrap the contents. ([45666](https://github.com/WordPress/gutenberg/pull/45666))
34
+ - Navigation: Add a new ManageMenusButton component. ([45782](https://github.com/WordPress/gutenberg/pull/45782))
35
+ - Read More block: Add aria-label and screen reader text. ([45490](https://github.com/WordPress/gutenberg/pull/45490))
36
+ - Group block: Use a variation picker in the placeholder. ([43496](https://github.com/WordPress/gutenberg/pull/43496))
37
+
38
+ #### Components
39
+ - CheckboxControl: Replace margin overrides with new opt-in prop. ([45434](https://github.com/WordPress/gutenberg/pull/45434))
40
+ - FontSizePicker: Update hint text to match the design. ([44966](https://github.com/WordPress/gutenberg/pull/44966))
41
+ - Update the design of the focal point handle. ([45053](https://github.com/WordPress/gutenberg/pull/45053))
42
+ - Use new theming accent color in all components. ([45289](https://github.com/WordPress/gutenberg/pull/45289))
43
+ - CheckboxControl: Move icons out of labels. ([45535](https://github.com/WordPress/gutenberg/pull/45535))
44
+
45
+ #### Block Editor
46
+ - Converts paragraphs to headings with keyboard shortcuts. ([44681](https://github.com/WordPress/gutenberg/pull/44681))
47
+ - Restore the empty paragraph inserter. ([45542](https://github.com/WordPress/gutenberg/pull/45542))
48
+ - Transform: Select all blocks if the result has more than one block. ([45015](https://github.com/WordPress/gutenberg/pull/45015))
49
+ - Content-only locked patterns: Move "Modify" to elllipsis menu. ([45391](https://github.com/WordPress/gutenberg/pull/45391))
50
+ - Patterns: Ajust the space in the pattern explorer list. ([45730](https://github.com/WordPress/gutenberg/pull/45730))
51
+ - Update: Lock icon to outline. ([45645](https://github.com/WordPress/gutenberg/pull/45645))
52
+ - Don't use capital case for 'Distraction free' strings. ([45538](https://github.com/WordPress/gutenberg/pull/45538))
53
+ - Replace Justification/Orientation controls with ToggleGroupControl. ([45637](https://github.com/WordPress/gutenberg/pull/45637))
54
+
55
+ #### Site Editor
56
+ - Update: Improve performance of block template object retrieval. ([45646](https://github.com/WordPress/gutenberg/pull/45646))
57
+ - Replace FSE with Site Editor. ([45699](https://github.com/WordPress/gutenberg/pull/45699))
58
+
59
+ #### Design Tools
60
+ - Add a minHeight block support under dimensions. ([45300](https://github.com/WordPress/gutenberg/pull/45300))
61
+ - Hide block toolbar when spacing visualizer is showing. ([45131](https://github.com/WordPress/gutenberg/pull/45131))
62
+
63
+ #### Global Styles
64
+ - Elements: Add a text decoration control to link elements. ([45643](https://github.com/WordPress/gutenberg/pull/45643))
65
+ - Global styles: Convert preset font size values to CSS vars. ([44967](https://github.com/WordPress/gutenberg/pull/44967))
66
+ - Fluid typography: Adjust font size min and max rules. ([45536](https://github.com/WordPress/gutenberg/pull/45536))
67
+ - Try generating random color palettes. ([40988](https://github.com/WordPress/gutenberg/pull/40988))
68
+
69
+
70
+ #### Plugin
71
+ - Updates tested up to version to 6.1. ([45630](https://github.com/WordPress/gutenberg/pull/45630))
72
+
73
+
74
+ ### Bug Fixes
75
+
76
+ #### Block Library
77
+ - Change the order of the pseudo-states in the pseudo selectors array. ([45559](https://github.com/WordPress/gutenberg/pull/45559))
78
+ - Cover: Avoid content loss when the templateLock value is all or contentOnly. ([45632](https://github.com/WordPress/gutenberg/pull/45632))
79
+ - Fix alignment of create new post link. ([45638](https://github.com/WordPress/gutenberg/pull/45638))
80
+ - Fix navigation appender position to prevent obstructing its items. ([43530](https://github.com/WordPress/gutenberg/pull/43530))
81
+ - Fix: Button block text alignment. ([45663](https://github.com/WordPress/gutenberg/pull/45663))
82
+ - Query Pagination: Fix positioning of next link in editor when parent is selected. ([45651](https://github.com/WordPress/gutenberg/pull/45651))
83
+ - Site Logo: Use the correct home URL setting. ([45476](https://github.com/WordPress/gutenberg/pull/45476))
84
+ - Switch background color to text color on block separator. ([44943](https://github.com/WordPress/gutenberg/pull/44943))
85
+ - Table Block: Apply borders and padding on both front end and editor. ([45069](https://github.com/WordPress/gutenberg/pull/45069))
86
+ - Table block: Fix error in margin value. ([45674](https://github.com/WordPress/gutenberg/pull/45674))
87
+ - Template Part Block: Update block isActive method. ([45672](https://github.com/WordPress/gutenberg/pull/45672))
88
+ - Navigation: Fix overflowing menu name in the navigation selector dropdown. ([45647](https://github.com/WordPress/gutenberg/pull/45647))
89
+
90
+ #### Accessibility
91
+ - Fix focus return when closing the Post publish panel. ([45623](https://github.com/WordPress/gutenberg/pull/45623))
92
+ - Fix navigate regions backwards for macOS Firefox and Safari. ([45019](https://github.com/WordPress/gutenberg/pull/45019))
93
+ - Fix the Save buttons labelling and tooltip. ([43952](https://github.com/WordPress/gutenberg/pull/43952))
94
+ - Fix the navigate regions focus style. ([45369](https://github.com/WordPress/gutenberg/pull/45369))
95
+ - Fix: Contrast checker appears unexpectedly on some blocks. ([45639](https://github.com/WordPress/gutenberg/pull/45639))
96
+ - Fix: Contrast checker does not update properly. ([45686](https://github.com/WordPress/gutenberg/pull/45686))
97
+
98
+ #### Components
99
+ - Autocomplete: Fix unexpected block insertion during IME composition. ([45510](https://github.com/WordPress/gutenberg/pull/45510))
100
+ - Fix ESLint warning for Dashicon. ([45795](https://github.com/WordPress/gutenberg/pull/45795))
101
+ - FormTokenField: Fix duplicate input in IME composition. ([45607](https://github.com/WordPress/gutenberg/pull/45607))
102
+ - Making size prop work for icon components using dash icon strings. ([45593](https://github.com/WordPress/gutenberg/pull/45593))
103
+ - ToolsPanel: Prevent calling deselect when panel remounts. ([45673](https://github.com/WordPress/gutenberg/pull/45673))
104
+ - Color Picker: Prevent all number fields to become 0 when one of them is an empty string. ([45649](https://github.com/WordPress/gutenberg/pull/45649))
105
+ - ToggleGroupControl: Only show enclosing border when `isBlock`. ([45492](https://github.com/WordPress/gutenberg/pull/45492))
106
+ - Autocomplete: Check key events more strictly in IME composition. ([45626](https://github.com/WordPress/gutenberg/pull/45626))
107
+
108
+ #### CSS & Styling
109
+ - Inherit font from theme on overlay close button. ([45635](https://github.com/WordPress/gutenberg/pull/45635))
110
+ - Navigation: Fix font inheritance when using text menu button. ([45514](https://github.com/WordPress/gutenberg/pull/45514))
111
+ - Remove hover style to button on dark block tools UI. ([45653](https://github.com/WordPress/gutenberg/pull/45653))
112
+ - Remove width from block mover button focus style. ([45665](https://github.com/WordPress/gutenberg/pull/45665))
113
+ - Site editor hover/select: Fix double border. ([45589](https://github.com/WordPress/gutenberg/pull/45589))
114
+ - Remove duplicate output of existing classnames in layout classnames. ([45499](https://github.com/WordPress/gutenberg/pull/45499))
115
+
116
+ #### Post Editor
117
+ - BlockManagerCategory: Fix styles for indeterminate. ([45564](https://github.com/WordPress/gutenberg/pull/45564))
118
+ - Fix: Updated names from List View to Document Overview. ([45524](https://github.com/WordPress/gutenberg/pull/45524))
119
+ - Strip HTML from Post Title when pasting multiline title containing HTML. ([35825](https://github.com/WordPress/gutenberg/pull/35825))
120
+
121
+ #### Site Editor
122
+ - Decode entities in template title and description. ([45716](https://github.com/WordPress/gutenberg/pull/45716))
123
+ - Link to homeUrl from site editor view menu. ([45475](https://github.com/WordPress/gutenberg/pull/45475))
124
+
125
+ #### Block Editor
126
+ - Fix Link UI popover positioning when inspector control input is focused. ([45661](https://github.com/WordPress/gutenberg/pull/45661))
127
+ - Paste: Fix list only paste from Google documentation. ([45498](https://github.com/WordPress/gutenberg/pull/45498))
128
+ - Make Manage Reusable blocks match similar links. ([45641](https://github.com/WordPress/gutenberg/pull/45641))([45689](https://github.com/WordPress/gutenberg/pull/45689))
129
+ - List View: Disable branch expansion when block editing is locked. ([45541](https://github.com/WordPress/gutenberg/pull/45541))
130
+ - Spacing visualizer: Fix display of unexpected visualizer for certain mouse actions. ([45739](https://github.com/WordPress/gutenberg/pull/45739))
131
+
132
+
133
+ ### Performance
134
+
135
+ - Lodash: Refactor away from `_.reduce()`. ([45460](https://github.com/WordPress/gutenberg/pull/45460))
136
+ - Lodash: Refactor block editor away from `_.reduce()`. ([45455](https://github.com/WordPress/gutenberg/pull/45455))
137
+ - Lodash: Refactor blocks away from `_.reduce()`. ([45457](https://github.com/WordPress/gutenberg/pull/45457))
138
+ - Lodash: Refactor site editor away from `_.reduce()`. ([45459](https://github.com/WordPress/gutenberg/pull/45459))
139
+ - Lodash: Refactor post editor away from `_.reduce()`. ([45458](https://github.com/WordPress/gutenberg/pull/45458))
140
+
141
+ #### Block Library
142
+ - Do not look for block variants, if not supporting block-templates. ([45362](https://github.com/WordPress/gutenberg/pull/45362))
143
+ - List: Disable nested list drop zone so dropping list items works. ([45321](https://github.com/WordPress/gutenberg/pull/45321))
144
+
145
+ #### Global Styles
146
+ - Use low-level cache for get_user_data_from_wp_global_styles. ([45634](https://github.com/WordPress/gutenberg/pull/45634))
147
+
148
+
149
+ ### Experiments
150
+
151
+ - Al list view duplicate for use in navigation list view experiment. ([45544](https://github.com/WordPress/gutenberg/pull/45544))
152
+ - Introduce experiment for inspector based navigation editing. ([45515](https://github.com/WordPress/gutenberg/pull/45515))
153
+
154
+
155
+ ### Documentation
156
+
157
+ - Add missing CHANGELOG entry. ([45691](https://github.com/WordPress/gutenberg/pull/45691))
158
+ - Change Title: How to use JavaScript with Gutenberg. ([45323](https://github.com/WordPress/gutenberg/pull/45323))
159
+ - Docs: Update the readme for the integration test fixtures. ([45581](https://github.com/WordPress/gutenberg/pull/45581))
160
+ - Summarize "Available commands" section and refer them it to `scripts` documentation. ([45636](https://github.com/WordPress/gutenberg/pull/45636))
161
+ - Update applying-styles-with-stylesheets.md. ([45604](https://github.com/WordPress/gutenberg/pull/45604))
162
+ - [create-block] Reorganized sections to provide a better learning experience of this package. ([45676](https://github.com/WordPress/gutenberg/pull/45676))
163
+ - Change "block style variations" references to "block style". ([45650](https://github.com/WordPress/gutenberg/pull/45650))
164
+
165
+
166
+
167
+ ### Code Quality
168
+
169
+ #### Block Editor
170
+ - Block Editor: Improve `LinkControl` tests. ([45609](https://github.com/WordPress/gutenberg/pull/45609))
171
+ - Block Editor: Improve `ResponsiveBlockControl` tests. ([45610](https://github.com/WordPress/gutenberg/pull/45610))
172
+ - Block Editor: Improve `ReusableBlocksTab` tests. ([45652](https://github.com/WordPress/gutenberg/pull/45652))
173
+ - LinkControl: Suppress errors on null values. ([45742](https://github.com/WordPress/gutenberg/pull/45742))
174
+ - Simplify ResizableEditor component. ([45578](https://github.com/WordPress/gutenberg/pull/45578))
175
+ - Remove duplicate colon. ([45763](https://github.com/WordPress/gutenberg/pull/45763))
176
+ - Extract the manage menus button to a shared component to reduce duplicate code. ([45769](https://github.com/WordPress/gutenberg/pull/45769))
177
+ - Backport pseudo selector comments from core. ([45619](https://github.com/WordPress/gutenberg/pull/45619))
178
+ - unstableSubscribeStore: Support store descriptors. ([45481](https://github.com/WordPress/gutenberg/pull/45481))
179
+
180
+
181
+ #### Components
182
+ - BaseField: Remove unnecessary `.firstChild` from tests. ([45687](https://github.com/WordPress/gutenberg/pull/45687))
183
+ - DateTime: Remove unused types. ([45615](https://github.com/WordPress/gutenberg/pull/45615))
184
+ - Draggable: Convert component to TypeScript. ([45471](https://github.com/WordPress/gutenberg/pull/45471))
185
+ - Fix `no-container` violations in `FormGroup` tests. ([45662](https://github.com/WordPress/gutenberg/pull/45662))
186
+ - Fix `testing-library/no-node-access` in `TreeGrid` tests. ([45554](https://github.com/WordPress/gutenberg/pull/45554))
187
+ - FontSizePicker: Use components instead of helper functions. ([44891](https://github.com/WordPress/gutenberg/pull/44891))
188
+ - Improve tests for `ToggleGroupControl`. ([45627](https://github.com/WordPress/gutenberg/pull/45627))
189
+ - MenuGroup: Convert component to TypeScript. ([45617](https://github.com/WordPress/gutenberg/pull/45617))
190
+ - Popover: Fix exhaustive-deps warning. ([45656](https://github.com/WordPress/gutenberg/pull/45656))
191
+ - Refactor `ItemGroup` to pass `exhaustive-deps`. ([45531](https://github.com/WordPress/gutenberg/pull/45531))
192
+ - Refactor `useFlex` to pass `exhaustive-deps`. ([45528](https://github.com/WordPress/gutenberg/pull/45528))
193
+ - Refactor `withNotices` to pass `exhaustive-deps`. ([45530](https://github.com/WordPress/gutenberg/pull/45530))
194
+ - Refactor`PaletteEditListView` to ignore `exhaustive-deps`. ([45467](https://github.com/WordPress/gutenberg/pull/45467))
195
+ - TabPanel: Fix the `exhaustive-deps` warning. ([45660](https://github.com/WordPress/gutenberg/pull/45660))
196
+ - ToolsPanel: Fix exhaustive-deps hook warning. ([45715](https://github.com/WordPress/gutenberg/pull/45715))
197
+ - Truncate: Remove unnecessary `.firstChild` from tests. ([45694](https://github.com/WordPress/gutenberg/pull/45694))
198
+ - View component: Rename index.js to index.ts. ([45667](https://github.com/WordPress/gutenberg/pull/45667))
199
+ - `ColorPalette`, `BorderBox`, `BorderBoxControl`: Polish and DRY prop types, add default values. ([45463](https://github.com/WordPress/gutenberg/pull/45463))
200
+ - `NavigatorScreen`: Satisfy `exhaustive-deps` eslint rule. ([45648](https://github.com/WordPress/gutenberg/pull/45648))
201
+ - Fix `useCx` story to satisfy `exhaustive-deps` eslint rule. ([45614](https://github.com/WordPress/gutenberg/pull/45614))
202
+ - URLPopover: Use new placement prop instead of legacy position prop. ([44391](https://github.com/WordPress/gutenberg/pull/44391))
203
+ - Tidy and minor refactor of Link UI code. ([37833](https://github.com/WordPress/gutenberg/pull/37833))
204
+
205
+ #### Block Library
206
+ - Avatar: Escape the 'get_author_posts_url()'. ([45427](https://github.com/WordPress/gutenberg/pull/45427))
207
+ - Button: Remove unnecessary 'useCallback'. ([45584](https://github.com/WordPress/gutenberg/pull/45584))
208
+ - Make unwrapping columns slighly more efficient. ([45684](https://github.com/WordPress/gutenberg/pull/45684))
209
+ - Simplfy handling of save of Nav block uncontrolled inner blocks. ([45517](https://github.com/WordPress/gutenberg/pull/45517))
210
+ - Lodash: Refactor block library away from `_.reduce()`. ([45456](https://github.com/WordPress/gutenberg/pull/45456))
211
+
212
+
213
+ ### Tools
214
+
215
+ #### Testing
216
+ - Components: Add `exhaustive-deps` eslint rule. ([41166](https://github.com/WordPress/gutenberg/pull/41166))
217
+ - Fix typos in Paragraph block end-to-end tests. ([45611](https://github.com/WordPress/gutenberg/pull/45611))
218
+ - FontSizePicker: Fix a buggy unit test. ([45529](https://github.com/WordPress/gutenberg/pull/45529))
219
+ - Ignore warnings for `window.wp` in Playwright. ([45598](https://github.com/WordPress/gutenberg/pull/45598))
220
+ - Migrate mentions tests to playwright. ([43064](https://github.com/WordPress/gutenberg/pull/43064))
221
+ - Navigation Toggle unit test: Unmount synchronously to cancel popover positioning. ([45726](https://github.com/WordPress/gutenberg/pull/45726))
222
+ - React Native unit tests: Migrate getByA11yLabel usages. ([45454](https://github.com/WordPress/gutenberg/pull/45454))
223
+ - Unit Tests: Rewrite ReactDOM.render usages to RTL. ([45453](https://github.com/WordPress/gutenberg/pull/45453))
224
+ - E2E: Add site and widget editor supports for ensureSidebarOpened. ([45480](https://github.com/WordPress/gutenberg/pull/45480))
225
+
226
+ #### Build Tooling
227
+ - Include TS and JSX files to testing-library lint. ([45533](https://github.com/WordPress/gutenberg/pull/45533))
228
+ - Remove use of `set-output` in workflows. ([45357](https://github.com/WordPress/gutenberg/pull/45357))
229
+
230
+ #### Triage
231
+ - Configure labels for GHA Dependabot PRs. ([45516](https://github.com/WordPress/gutenberg/pull/45516))
232
+
233
+ #### Patterns
234
+ - Pattern Directory API: Add support for pagination parameters. ([45293](https://github.com/WordPress/gutenberg/pull/45293))
235
+ - Update bundled patterns compat directory. ([45620](https://github.com/WordPress/gutenberg/pull/45620))
236
+
237
+
238
+
239
+ ## First time contributors
240
+
241
+ The following PRs were merged by first time contributors:
242
+
243
+ - @edanzer: Template Part Block: Update block isActive method. ([45672](https://github.com/WordPress/gutenberg/pull/45672))
244
+ - @TimBroddin: Fix alignment of create new post link. ([45638](https://github.com/WordPress/gutenberg/pull/45638))
245
+ - @wojtekn: Make Author block selector to display all users instead of just 10. ([45640](https://github.com/WordPress/gutenberg/pull/45640))
246
+
247
+
248
+ ## Contributors
249
+
250
+ The following contributors merged PRs in this release:
251
+
252
+ @aaronrobertshaw @afercia @andrewserong @bph @brookewp @c4rl0sbr4v0 @carolinan @chad1008 @ciampo @Copons @DaisyOlsen @desrosj @dinhtungdu @draganescu @dsas @edanzer @ellatrix @enejb @flootr @getdave @glendaviesnz @hz-tyfoon @jasmussen @javierarce @jffng @jonathanbossenger @jorgefilipecosta @jsnajdr @juanmaguitar @juhi123 @kevin940726 @Mamaduka @matiasbenedetto @mikachan @mirka @mmtr @mtias @ndiego @nielslange @noisysocks @ntsekouras @peterwilsoncc @ramonjd @ryelle @scruffian @spacedmonkey @t-hamano @TimBroddin @tyxla @vcanales @walbo @wojtekn @youknowriad @yuliyan
253
+
254
+
255
+ = 14.5.1 =
256
+
257
+
258
+
259
+ ## Changelog
260
+
261
+ ### Bug Fixes
262
+
263
+ - Fix: Prevent infinite loop in Tag Processor in certain truncated documents (https://github.com/WordPress/gutenberg/pull/45537)
264
 
265
 
266
  = 14.5.0 =
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.9
7
  * Requires PHP: 5.6
8
- * Version: 14.5.1
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
@@ -13,8 +13,8 @@
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
- define( 'GUTENBERG_VERSION', '14.5.1' );
17
- define( 'GUTENBERG_GIT_COMMIT', '2f8aca650d556d16e9097436f5b1ac70946dd9bd' );
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.9
7
  * Requires PHP: 5.6
8
+ * Version: 14.5.2
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
+ define( 'GUTENBERG_VERSION', '14.5.2' );
17
+ define( 'GUTENBERG_GIT_COMMIT', 'ecb339bdcda0474adfcbad07dca714f925838bde' );
18
  ### END AUTO-GENERATED DEFINES
19
 
20
  gutenberg_pre_init();
lib/experimental/html/class-wp-html-tag-processor.php CHANGED
@@ -397,6 +397,10 @@ class WP_HTML_Tag_Processor {
397
  $already_found = 0;
398
 
399
  do {
 
 
 
 
400
  /*
401
  * Unfortunately we can't try to search for only the tag name we want because that might
402
  * lead us to skip over other tags and lose track of our place. So we need to search for
@@ -419,10 +423,15 @@ class WP_HTML_Tag_Processor {
419
  if ( 's' === $t || 'S' === $t || 't' === $t || 'T' === $t ) {
420
  $tag_name = $this->get_tag();
421
 
422
- if ( 'SCRIPT' === $tag_name ) {
423
- $this->skip_script_data();
424
- } elseif ( 'TEXTAREA' === $tag_name || 'TITLE' === $tag_name ) {
425
- $this->skip_rcdata( $tag_name );
 
 
 
 
 
426
  }
427
  }
428
  } while ( $already_found < $this->sought_match_offset );
@@ -449,9 +458,9 @@ class WP_HTML_Tag_Processor {
449
  $at = strpos( $this->html, '</', $at );
450
 
451
  // If we have no possible tag closer then fail.
452
- if ( false === $at || ( $at + $tag_length ) > $doc_length ) {
453
  $this->parsed_bytes = $doc_length;
454
- return;
455
  }
456
 
457
  $at += 2;
@@ -488,10 +497,13 @@ class WP_HTML_Tag_Processor {
488
 
489
  $this->skip_tag_closer_attributes();
490
  $at = $this->parsed_bytes;
 
 
 
491
 
492
  if ( '>' === $html[ $at ] || '/' === $html[ $at ] ) {
493
  ++$this->parsed_bytes;
494
- return;
495
  }
496
  }
497
 
@@ -586,6 +598,9 @@ class WP_HTML_Tag_Processor {
586
  * We also have to make sure we terminate the script tag opener/closer
587
  * to avoid making partial matches on strings like `<script123`.
588
  */
 
 
 
589
  $at += 6;
590
  $c = $html[ $at ];
591
  if ( ' ' !== $c && "\t" !== $c && "\r" !== $c && "\n" !== $c && '/' !== $c && '>' !== $c ) {
@@ -607,9 +622,13 @@ class WP_HTML_Tag_Processor {
607
  $this->parsed_bytes = $at;
608
  $this->skip_tag_closer_attributes();
609
 
 
 
 
 
610
  if ( '>' === $html[ $this->parsed_bytes ] ) {
611
  ++$this->parsed_bytes;
612
- return;
613
  }
614
  }
615
 
@@ -658,6 +677,13 @@ class WP_HTML_Tag_Processor {
658
  return true;
659
  }
660
 
 
 
 
 
 
 
 
661
  // <! transitions to markup declaration open state
662
  // https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state
663
  if ( '!' === $html[ $at + 1 ] ) {
@@ -782,6 +808,9 @@ class WP_HTML_Tag_Processor {
782
  private function parse_next_attribute( $context = 'tag-opener' ) {
783
  // Skip whitespace and slashes.
784
  $this->parsed_bytes += strspn( $this->html, " \t\f\r\n/", $this->parsed_bytes );
 
 
 
785
 
786
  /*
787
  * Treat the equal sign ("=") as a part of the attribute name if it is the
@@ -793,20 +822,29 @@ class WP_HTML_Tag_Processor {
793
  : strcspn( $this->html, "=/> \t\f\r\n", $this->parsed_bytes );
794
 
795
  // No attribute, just tag closer.
796
- if ( 0 === $name_length ) {
797
  return false;
798
  }
799
 
800
  $attribute_start = $this->parsed_bytes;
801
  $attribute_name = substr( $this->html, $attribute_start, $name_length );
802
  $this->parsed_bytes += $name_length;
 
 
 
803
 
804
  $this->skip_whitespace();
 
 
 
805
 
806
  $has_value = '=' === $this->html[ $this->parsed_bytes ];
807
  if ( $has_value ) {
808
  ++$this->parsed_bytes;
809
  $this->skip_whitespace();
 
 
 
810
 
811
  switch ( $this->html[ $this->parsed_bytes ] ) {
812
  case "'":
@@ -830,6 +868,10 @@ class WP_HTML_Tag_Processor {
830
  $attribute_end = $attribute_start + $name_length;
831
  }
832
 
 
 
 
 
833
  if ( 'tag-opener' !== $context ) {
834
  return true;
835
  }
397
  $already_found = 0;
398
 
399
  do {
400
+ if ( $this->parsed_bytes >= strlen( $this->html ) ) {
401
+ return false;
402
+ }
403
+
404
  /*
405
  * Unfortunately we can't try to search for only the tag name we want because that might
406
  * lead us to skip over other tags and lose track of our place. So we need to search for
423
  if ( 's' === $t || 'S' === $t || 't' === $t || 'T' === $t ) {
424
  $tag_name = $this->get_tag();
425
 
426
+ if ( 'SCRIPT' === $tag_name && ! $this->skip_script_data() ) {
427
+ $this->parsed_bytes = strlen( $this->html );
428
+ return false;
429
+ } elseif (
430
+ ( 'TEXTAREA' === $tag_name || 'TITLE' === $tag_name ) &&
431
+ ! $this->skip_rcdata( $tag_name )
432
+ ) {
433
+ $this->parsed_bytes = strlen( $this->html );
434
+ return false;
435
  }
436
  }
437
  } while ( $already_found < $this->sought_match_offset );
458
  $at = strpos( $this->html, '</', $at );
459
 
460
  // If we have no possible tag closer then fail.
461
+ if ( false === $at || ( $at + $tag_length ) >= $doc_length ) {
462
  $this->parsed_bytes = $doc_length;
463
+ return false;
464
  }
465
 
466
  $at += 2;
497
 
498
  $this->skip_tag_closer_attributes();
499
  $at = $this->parsed_bytes;
500
+ if ( $at >= strlen( $this->html ) ) {
501
+ return false;
502
+ }
503
 
504
  if ( '>' === $html[ $at ] || '/' === $html[ $at ] ) {
505
  ++$this->parsed_bytes;
506
+ return true;
507
  }
508
  }
509
 
598
  * We also have to make sure we terminate the script tag opener/closer
599
  * to avoid making partial matches on strings like `<script123`.
600
  */
601
+ if ( $at + 6 >= $doc_length ) {
602
+ continue;
603
+ }
604
  $at += 6;
605
  $c = $html[ $at ];
606
  if ( ' ' !== $c && "\t" !== $c && "\r" !== $c && "\n" !== $c && '/' !== $c && '>' !== $c ) {
622
  $this->parsed_bytes = $at;
623
  $this->skip_tag_closer_attributes();
624
 
625
+ if ( $this->parsed_bytes >= $doc_length ) {
626
+ return false;
627
+ }
628
+
629
  if ( '>' === $html[ $this->parsed_bytes ] ) {
630
  ++$this->parsed_bytes;
631
+ return true;
632
  }
633
  }
634
 
677
  return true;
678
  }
679
 
680
+ // If we didn't find a tag opener, and we can't be
681
+ // transitioning into different markup states, then
682
+ // we can abort because there aren't any more tags.
683
+ if ( $at + 1 >= strlen( $html ) ) {
684
+ return false;
685
+ }
686
+
687
  // <! transitions to markup declaration open state
688
  // https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state
689
  if ( '!' === $html[ $at + 1 ] ) {
808
  private function parse_next_attribute( $context = 'tag-opener' ) {
809
  // Skip whitespace and slashes.
810
  $this->parsed_bytes += strspn( $this->html, " \t\f\r\n/", $this->parsed_bytes );
811
+ if ( $this->parsed_bytes >= strlen( $this->html ) ) {
812
+ return false;
813
+ }
814
 
815
  /*
816
  * Treat the equal sign ("=") as a part of the attribute name if it is the
822
  : strcspn( $this->html, "=/> \t\f\r\n", $this->parsed_bytes );
823
 
824
  // No attribute, just tag closer.
825
+ if ( 0 === $name_length || $this->parsed_bytes + $name_length >= strlen( $this->html ) ) {
826
  return false;
827
  }
828
 
829
  $attribute_start = $this->parsed_bytes;
830
  $attribute_name = substr( $this->html, $attribute_start, $name_length );
831
  $this->parsed_bytes += $name_length;
832
+ if ( $this->parsed_bytes >= strlen( $this->html ) ) {
833
+ return false;
834
+ }
835
 
836
  $this->skip_whitespace();
837
+ if ( $this->parsed_bytes >= strlen( $this->html ) ) {
838
+ return false;
839
+ }
840
 
841
  $has_value = '=' === $this->html[ $this->parsed_bytes ];
842
  if ( $has_value ) {
843
  ++$this->parsed_bytes;
844
  $this->skip_whitespace();
845
+ if ( $this->parsed_bytes >= strlen( $this->html ) ) {
846
+ return false;
847
+ }
848
 
849
  switch ( $this->html[ $this->parsed_bytes ] ) {
850
  case "'":
868
  $attribute_end = $attribute_start + $name_length;
869
  }
870
 
871
+ if ( $attribute_end >= strlen( $this->html ) ) {
872
+ return false;
873
+ }
874
+
875
  if ( 'tag-opener' !== $context ) {
876
  return true;
877
  }
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Gutenberg ===
2
  Contributors: matveb, joen, karmatosed
3
  Tested up to: 6.0
4
- Stable tag: 14.5.0
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
 
1
  === Gutenberg ===
2
  Contributors: matveb, joen, karmatosed
3
  Tested up to: 6.0
4
+ Stable tag: 14.5.1
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7