Gutenberg - Version 13.8.1

Version Description

Download this release

Release Info

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

Code changes from version 13.8.0 to 13.8.1

changelog.txt CHANGED
@@ -1,6 +1,6 @@
1
  == Changelog ==
2
 
3
- = 13.8.0 =
4
 
5
 
6
 
@@ -96,6 +96,7 @@
96
  - Hide prefix and suffix placeholders in post terms. ([42418](https://github.com/WordPress/gutenberg/pull/42418))
97
  - Theme.json: Fix schema for button elements. ([42431](https://github.com/WordPress/gutenberg/pull/42431))
98
  - [Media Text]: Fix deprecations regression. ([42816](https://github.com/WordPress/gutenberg/pull/42816))
 
99
 
100
  #### Components
101
  - AnglePickerControl: Fix gap between elements in RTL mode. ([42534](https://github.com/WordPress/gutenberg/pull/42534))
@@ -248,6 +249,254 @@ The following contributors merged PRs in this release:
248
 
249
 
250
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  = 13.7.3 =
252
 
253
 
1
  == Changelog ==
2
 
3
+ = 13.8.1 =
4
 
5
 
6
 
96
  - Hide prefix and suffix placeholders in post terms. ([42418](https://github.com/WordPress/gutenberg/pull/42418))
97
  - Theme.json: Fix schema for button elements. ([42431](https://github.com/WordPress/gutenberg/pull/42431))
98
  - [Media Text]: Fix deprecations regression. ([42816](https://github.com/WordPress/gutenberg/pull/42816))
99
+ - Site Logo: Add the missing 'site_icon_url' to the REST_API index. ([42957](https://github.com/WordPress/gutenberg/pull/42957))
100
 
101
  #### Components
102
  - AnglePickerControl: Fix gap between elements in RTL mode. ([42534](https://github.com/WordPress/gutenberg/pull/42534))
249
 
250
 
251
 
252
+ = 13.8.0 =
253
+
254
+
255
+
256
+ ## Changelog
257
+
258
+
259
+ ### Enhancements
260
+
261
+ - Allow removing CSS declarations from the WP_Style_Engine_CSS_Declarations object. ([42428](https://github.com/WordPress/gutenberg/pull/42428))
262
+ - Equalize modal content padding. ([42370](https://github.com/WordPress/gutenberg/pull/42370))
263
+ - Remove top margin on the first paragraph in a modal. ([42369](https://github.com/WordPress/gutenberg/pull/42369))
264
+
265
+ #### Components
266
+ - BorderControl: Render border color/style dropdown as UnitControl prefix. ([42212](https://github.com/WordPress/gutenberg/pull/42212))
267
+ - ColorPicker: Cleanly implement large size. ([42002](https://github.com/WordPress/gutenberg/pull/42002))
268
+ - ComboboxControl: Refactor `onKeyDown` to use `keyboardEvent.code`. ([42569](https://github.com/WordPress/gutenberg/pull/42569))
269
+ - Elevation: Convert component to TypeScript. ([42302](https://github.com/WordPress/gutenberg/pull/42302))
270
+ - InputControl: Decrease large default padding if has prefix/suffix. ([42166](https://github.com/WordPress/gutenberg/pull/42166))
271
+ - ScrollLock: Covert component to TypeScript. ([42303](https://github.com/WordPress/gutenberg/pull/42303))
272
+ - SelectControl: Add flag for larger default size. ([42456](https://github.com/WordPress/gutenberg/pull/42456))
273
+ - Shortcut: Covert component to TypeScript. ([42272](https://github.com/WordPress/gutenberg/pull/42272))
274
+ - Divider: Complete TypeScript migration of component. ([41991](https://github.com/WordPress/gutenberg/pull/41991))
275
+ - ToggleGroupControl: Add size variants. ([42008](https://github.com/WordPress/gutenberg/pull/42008))
276
+ - UnitControl: Update unit select's focus styles. ([42383](https://github.com/WordPress/gutenberg/pull/42383))
277
+ - BorderControl: Add missing changelog for accessibility enhancements. ([42411](https://github.com/WordPress/gutenberg/pull/42411))
278
+ - CustomSelectControl: Use styles from SelectControl. ([42460](https://github.com/WordPress/gutenberg/pull/42460))
279
+ - Dropdown: Add wrapper for custom padding. ([42595](https://github.com/WordPress/gutenberg/pull/42595))
280
+ - InputControl: Add padding wrapper for prefix/suffix. ([42378](https://github.com/WordPress/gutenberg/pull/42378))
281
+ - ScrollLock: Improve Storybook story for documentation view. ([42344](https://github.com/WordPress/gutenberg/pull/42344))
282
+ - `ColorPalette`: Display checkered preview background when `value` is transparent. ([42232](https://github.com/WordPress/gutenberg/pull/42232))
283
+
284
+ #### Block Library
285
+ - Added WhatsApp icon to the Social Icon Block. ([42137](https://github.com/WordPress/gutenberg/pull/42137))
286
+ - Template Part: Swap block action places. ([42221](https://github.com/WordPress/gutenberg/pull/42221))
287
+ - Template Parts: Add search to replacement modal. ([42459](https://github.com/WordPress/gutenberg/pull/42459))
288
+ - Image: Add border block support for color, width, and style. ([31366](https://github.com/WordPress/gutenberg/pull/31366))
289
+ - List v2: Remove quote transforms as removed by Quote v2. ([42700](https://github.com/WordPress/gutenberg/pull/42700))
290
+ - Merge Comments and Post Comments blocks. ([41807](https://github.com/WordPress/gutenberg/pull/41807))
291
+ - Theme.json: Add support for heading / caption elements in theme.json schema. ([42433](https://github.com/WordPress/gutenberg/pull/42433))
292
+
293
+ #### Global Styles
294
+ - Add layout content size controls to global styles. ([42309](https://github.com/WordPress/gutenberg/pull/42309))
295
+ - Core CSS support for root padding and alignfull blocks. ([42085](https://github.com/WordPress/gutenberg/pull/42085))
296
+ - Theme.json: Add block support feature level selectors for blocks. ([42087](https://github.com/WordPress/gutenberg/pull/42087))
297
+
298
+ #### Document Settings
299
+ - Make 'Move to trash' button full width. ([42577](https://github.com/WordPress/gutenberg/pull/42577))
300
+
301
+ #### Block Editor
302
+ - Add setting to display rich text toolbar inline. ([42399](https://github.com/WordPress/gutenberg/pull/42399))
303
+ - Add block variations for individual template parts. ([42454](https://github.com/WordPress/gutenberg/pull/42454))
304
+ - Enable `onEnter` support for group block. ([40724](https://github.com/WordPress/gutenberg/pull/40724))
305
+
306
+ #### Site Editor
307
+ - On template creation, don't show search if not needed. ([42357](https://github.com/WordPress/gutenberg/pull/42357))
308
+
309
+ #### Accessibility
310
+ - BorderControl: Update labelling, tooltips and wrap with fieldset and legend. ([42348](https://github.com/WordPress/gutenberg/pull/42348))
311
+
312
+ #### Icons
313
+ - Add shuffle icon to library. ([42193](https://github.com/WordPress/gutenberg/pull/42193))
314
+
315
+ #### Nested / Inner Blocks
316
+ - Quote: Use nested blocks. ([25892](https://github.com/WordPress/gutenberg/pull/25892))
317
+
318
+ #### Colors
319
+ - Update color palette popover style. ([41900](https://github.com/WordPress/gutenberg/pull/41900))
320
+
321
+
322
+ ### Bug Fixes
323
+
324
+ - Env: Download WordPress PHPUnit Into Container. ([41780](https://github.com/WordPress/gutenberg/pull/41780))
325
+ - Env: Restrict `WP_TESTS_DOMAIN` constant to just hostname and not home URL. ([41039](https://github.com/WordPress/gutenberg/pull/41039))
326
+ - Fix: Condition bug on BoxControl. ([42402](https://github.com/WordPress/gutenberg/pull/42402))
327
+ - MaybeCategoryPanel: Update category selector. ([42663](https://github.com/WordPress/gutenberg/pull/42663))
328
+ - Post title: Fix single line paste. ([42321](https://github.com/WordPress/gutenberg/pull/42321))
329
+ - Scripts: Exit error code 1 when status value is null. ([42396](https://github.com/WordPress/gutenberg/pull/42396))
330
+ - Style engine: Check item value validity. ([42487](https://github.com/WordPress/gutenberg/pull/42487))
331
+ - Utilize WordPress PHPUnit Test Library Included By `wp-env`. ([41852](https://github.com/WordPress/gutenberg/pull/41852))
332
+ - fix: Correct alt text footnote spacing. ([42504](https://github.com/WordPress/gutenberg/pull/42504))
333
+
334
+ #### Block Library
335
+ - Cover Block: Prevent transform to Group block when featured image is set. ([42638](https://github.com/WordPress/gutenberg/pull/42638))
336
+ - Cover block: Adding background-size and background-repeat properties to the block CSS. ([42470](https://github.com/WordPress/gutenberg/pull/42470))
337
+ - Fix tab/focus order issue in Media & text block. ([40806](https://github.com/WordPress/gutenberg/pull/40806))
338
+ - List v2: Add forward delete. ([42564](https://github.com/WordPress/gutenberg/pull/42564))
339
+ - List v2: Improve paste handling. ([42524](https://github.com/WordPress/gutenberg/pull/42524))
340
+ - List v2: Merge with nested items. ([42551](https://github.com/WordPress/gutenberg/pull/42551))
341
+ - List v2: Switch to default block type on Backspace from start. ([42633](https://github.com/WordPress/gutenberg/pull/42633))
342
+ - Page List: Fetch items with 'view' context. ([42559](https://github.com/WordPress/gutenberg/pull/42559))
343
+ - Social Icons Block: Fix button opacity in template parts. ([42641](https://github.com/WordPress/gutenberg/pull/42641))
344
+ - Group block: Add context to the word "Row". ([42255](https://github.com/WordPress/gutenberg/pull/42255))
345
+ - Hide prefix and suffix placeholders in post terms. ([42418](https://github.com/WordPress/gutenberg/pull/42418))
346
+ - Theme.json: Fix schema for button elements. ([42431](https://github.com/WordPress/gutenberg/pull/42431))
347
+ - [Media Text]: Fix deprecations regression. ([42816](https://github.com/WordPress/gutenberg/pull/42816))
348
+
349
+ #### Components
350
+ - AnglePickerControl: Fix gap between elements in RTL mode. ([42534](https://github.com/WordPress/gutenberg/pull/42534))
351
+ - ColorPalette: Fix background image in RTL mode. ([42510](https://github.com/WordPress/gutenberg/pull/42510))
352
+ - Context System: Don't explicitly set `undefined` value to `children`. ([42686](https://github.com/WordPress/gutenberg/pull/42686))
353
+ - Popover: Fix width on `expandOnMobile`. ([42635](https://github.com/WordPress/gutenberg/pull/42635))
354
+ - RangeControl: Clamp initialPosition between min and max values. ([42571](https://github.com/WordPress/gutenberg/pull/42571))
355
+ - Tooltip: Avoid unnecessary re-renders of `<select>` child elements. ([42483](https://github.com/WordPress/gutenberg/pull/42483))
356
+ - Tooltip: Fix positioning by anchoring to child element. ([41268](https://github.com/WordPress/gutenberg/pull/41268))
357
+
358
+ #### Accessibility
359
+ - Add aria-hidden to query pagination arrows. ([42583](https://github.com/WordPress/gutenberg/pull/42583))
360
+ - Fix labelling and semantics of the paragraph block Left to right control. ([42324](https://github.com/WordPress/gutenberg/pull/42324))
361
+ - Fix mismatching label and visible text on the Toggle block inserter button. ([42359](https://github.com/WordPress/gutenberg/pull/42359))
362
+ - Fix: The description text of block movers for horizontal movement. ([42393](https://github.com/WordPress/gutenberg/pull/42393))
363
+ - Replace clickable div elements with buttons in the Add template modal. ([42668](https://github.com/WordPress/gutenberg/pull/42668))
364
+
365
+ #### Post Editor
366
+ - Avoid 403 errors for users with low permissions. ([42413](https://github.com/WordPress/gutenberg/pull/42413))
367
+ - Display post template selection for non-admin users. ([42705](https://github.com/WordPress/gutenberg/pull/42705))
368
+ - Editor: Fix typo in translation string. ([42673](https://github.com/WordPress/gutenberg/pull/42673))
369
+
370
+ #### Block Editor
371
+ - Prevent link control popover from going offscreen. ([42389](https://github.com/WordPress/gutenberg/pull/42389))
372
+ - Writing flow: Fix caret movement for multiple lines. ([42423](https://github.com/WordPress/gutenberg/pull/42423))
373
+ - Writing flow: Fix caret placement in corners. ([42437](https://github.com/WordPress/gutenberg/pull/42437))
374
+ - Writing flow: Esc should enter Nav mode consistently, avoid focus loss when clearing selection. ([42530](https://github.com/WordPress/gutenberg/pull/42530))
375
+
376
+ #### CSS & Styling
377
+ - Elements: Buttons: Fix the path with the css to style the cursor for all button elements. ([42129](https://github.com/WordPress/gutenberg/pull/42129))
378
+ - Link elements: Add a :where selector to the :Not to lower specificity. ([42669](https://github.com/WordPress/gutenberg/pull/42669))
379
+ - Button Block: Change text-decoration style to low specificity. ([42545](https://github.com/WordPress/gutenberg/pull/42545))
380
+ - Element styles: Adding stylesheet to load in the editor. ([42132](https://github.com/WordPress/gutenberg/pull/42132))
381
+
382
+ #### Global Styles
383
+ - Elements: Fix heading and caption element selectors. ([42479](https://github.com/WordPress/gutenberg/pull/42479))
384
+ - Layout content size controls: Add left alignment to line up with description and other elements. ([42576](https://github.com/WordPress/gutenberg/pull/42576))
385
+ - Layout: Ensure defaultEditorStyles are still output in Classic themes. ([42906](https://github.com/WordPress/gutenberg/pull/42906))
386
+ - Theme JSON Resolver: Update cache check to also check that the object is an instance of the Gutenberg version. ([42756](https://github.com/WordPress/gutenberg/pull/42756))
387
+
388
+ #### Widgets Editor
389
+ - Add configuration option to skip autop on freeform blocks when parsing blocks. ([42623](https://github.com/WordPress/gutenberg/pull/42623))
390
+
391
+ #### Rich Text
392
+ - Annotation API: Fix __experimentalGetPropsForEditableTreePreparation. ([42596](https://github.com/WordPress/gutenberg/pull/42596))
393
+
394
+ #### Site Editor
395
+ - Fix typo in default category template's description. ([42586](https://github.com/WordPress/gutenberg/pull/42586))
396
+ - [Site Editor]: Fix Reakit warning on creation template component. ([42392](https://github.com/WordPress/gutenberg/pull/42392))
397
+ - Site Editor: Remove leftover class. ([42591](https://github.com/WordPress/gutenberg/pull/42591))
398
+
399
+ #### Themes
400
+ - Remove core/post-comments-form block styles that are overriding button element styles. ([42053](https://github.com/WordPress/gutenberg/pull/42053))
401
+
402
+ #### Icons
403
+ - Icons Package: Fix line icons styling. ([40315](https://github.com/WordPress/gutenberg/pull/40315))
404
+
405
+
406
+ ### Performance
407
+
408
+ #### Components
409
+ - Lodash: Refactor a few components away from `_.isEmpty()`. ([42468](https://github.com/WordPress/gutenberg/pull/42468))
410
+ - Lodash: Refactor away from `_.compact()`. ([42438](https://github.com/WordPress/gutenberg/pull/42438))
411
+
412
+ #### Post Editor
413
+ - Lodash: Refactor `PageAttributesParent` away from `_.deburr()`. ([42429](https://github.com/WordPress/gutenberg/pull/42429))
414
+
415
+ #### Testing
416
+ - Lodash: Refactor away from `_.snakeCase()`. ([42427](https://github.com/WordPress/gutenberg/pull/42427))
417
+
418
+ #### Block Validation/Deprecation
419
+ - Lodash: Refactor away from `_.fromPairs()`. ([42217](https://github.com/WordPress/gutenberg/pull/42217))
420
+
421
+
422
+ ### Experiments
423
+
424
+ - Style Engine Rules & Store objects. ([42222](https://github.com/WordPress/gutenberg/pull/42222))
425
+ - Style Engine: Add a WP_Style_Engine_Processor object. ([42463](https://github.com/WordPress/gutenberg/pull/42463))
426
+
427
+ #### CSS & Styling
428
+ - Style Engine: Add elements to the frontend. ([41732](https://github.com/WordPress/gutenberg/pull/41732))
429
+
430
+ #### Global Styles
431
+ - Block supports: Add fluid typography. ([39529](https://github.com/WordPress/gutenberg/pull/39529))
432
+ - Layout: Reduce specificity of fallback blockGap styles. ([42665](https://github.com/WordPress/gutenberg/pull/42665))
433
+
434
+
435
+ ### Documentation
436
+
437
+ - Add @examples to core/blocks selectors. ([42572](https://github.com/WordPress/gutenberg/pull/42572))
438
+ - Consolidate editor filters and actions. ([42356](https://github.com/WordPress/gutenberg/pull/42356))
439
+ - Correct the documented return type for `WP_Block_Parser::Render()`. ([42642](https://github.com/WordPress/gutenberg/pull/42642))
440
+ - Doc: Update getEntityRecord/s param description. ([42488](https://github.com/WordPress/gutenberg/pull/42488))
441
+ - Docs: Add `variations` key to `block.json` JSON schema definition. ([42539](https://github.com/WordPress/gutenberg/pull/42539))
442
+ - Docs: Add missing data module references. ([42651](https://github.com/WordPress/gutenberg/pull/42651))
443
+ - Fix: Repetition of wrong word in string. ([42621](https://github.com/WordPress/gutenberg/pull/42621))
444
+ - Flex: Remove experimental from documentation and storybook. ([42301](https://github.com/WordPress/gutenberg/pull/42301))
445
+ - Include section on how to test code for a given WP major. ([42390](https://github.com/WordPress/gutenberg/pull/42390))
446
+ - Marking internal action as @ignore to remove them from the documentation. ([42163](https://github.com/WordPress/gutenberg/pull/42163))
447
+ - Theme JSON Docs: Clarify null, true, and false values for blockGap setting. ([42447](https://github.com/WordPress/gutenberg/pull/42447))
448
+ - ToolsPanel: Add a readme section related to laying out a ToolsPanel. ([42615](https://github.com/WordPress/gutenberg/pull/42615))
449
+
450
+ #### Components
451
+ - Improve documentation for the `SpaceInput` type. ([42376](https://github.com/WordPress/gutenberg/pull/42376))
452
+
453
+
454
+ ### Code Quality
455
+
456
+ - Base Styles: Apply `long-content-fade` gradient from transparent to color. ([42401](https://github.com/WordPress/gutenberg/pull/42401))
457
+ - Fix jsx-a11y label-has-associated-control configuration. ([42671](https://github.com/WordPress/gutenberg/pull/42671))
458
+ - Fix: Two code issues on navigation link edit missing text. ([42440](https://github.com/WordPress/gutenberg/pull/42440))
459
+ - Remove deprecated eslint rules. ([42654](https://github.com/WordPress/gutenberg/pull/42654))
460
+ - Style Engine: Rename WP_Style_Engine_CSS_Rule->set_declarations to add_declarations. ([42464](https://github.com/WordPress/gutenberg/pull/42464))
461
+ - Style engine: Update return PHP doc comment and other nitpicks. ([42453](https://github.com/WordPress/gutenberg/pull/42453))
462
+
463
+ #### Global Styles
464
+ - Dimensions Global Styles: Split props into separate hooks to tidy up the panel component. ([42620](https://github.com/WordPress/gutenberg/pull/42620))
465
+
466
+ #### Block Library
467
+ - Remove unnecessary React Fragments. ([42529](https://github.com/WordPress/gutenberg/pull/42529))
468
+
469
+
470
+ ### Tools
471
+
472
+ #### Testing
473
+ - Added unit test for cover block render function. ([42108](https://github.com/WordPress/gutenberg/pull/42108))
474
+ - Migrate hooks api test to playwright. ([42584](https://github.com/WordPress/gutenberg/pull/42584))
475
+ - Skip flaky navigation block permissions test. ([42693](https://github.com/WordPress/gutenberg/pull/42693))
476
+ - end-to-end Tests: Tweak Comments block tests after migrating to Playwright. ([42406](https://github.com/WordPress/gutenberg/pull/42406))
477
+
478
+ #### Build Tooling
479
+ - Update to reflect change in Documentation label. ([42395](https://github.com/WordPress/gutenberg/pull/42395))
480
+ - Add inline documentation on building API documentation to commit block API verify error message. ([42432](https://github.com/WordPress/gutenberg/pull/42432))
481
+
482
+
483
+ ## First time contributors
484
+
485
+ The following PRs were merged by first time contributors:
486
+
487
+ - @kkmuffme: Remove deprecated eslint rules. ([42654](https://github.com/WordPress/gutenberg/pull/42654))
488
+ - @paulopmt1: Added WhatsApp icon to the Social Icon Block. ([42137](https://github.com/WordPress/gutenberg/pull/42137))
489
+
490
+
491
+ ## Contributors
492
+
493
+ The following contributors merged PRs in this release:
494
+
495
+ @aaronrobertshaw @afercia @ajlende @amustaque97 @andrewserong @arcangelini @aristath @bph @carolinan @chad1008 @ciampo @danielbachhuber @DAreRodz @dcalhoun @ellatrix @fabiankaegy @geriux @getdave @gziolo @jameskoster @johnbillion @jorgefilipecosta @kkmuffme @Mamaduka @matiasbenedetto @mirka @ndiego @noisysocks @ntsekouras @oandregal @ObliviousHarmony @paulopmt1 @pedro-mendonca @pooja-muchandikar @ramonjd @ryanwelcher @scruffian @SiobhyB @sunil25393 @t-hamano @talldan @tellthemachines @tyxla @vcanales @walbo @westonruter @zaguiini
496
+
497
+
498
+
499
+
500
  = 13.7.3 =
501
 
502
 
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: 13.8.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', '13.8.0' );
17
- define( 'GUTENBERG_GIT_COMMIT', '4fd212e0ad30521ce0727442087012eabd0660da' );
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: 13.8.1
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
+ define( 'GUTENBERG_VERSION', '13.8.1' );
17
+ define( 'GUTENBERG_GIT_COMMIT', '340a557a634b7d2fda08b28d7b7755a2527fdf83' );
18
  ### END AUTO-GENERATED DEFINES
19
 
20
  gutenberg_pre_init();
lib/compat/wordpress-6.1/rest-api.php CHANGED
@@ -43,3 +43,21 @@ function gutenberg_register_gutenberg_rest_block_patterns() {
43
  $block_patterns->register_routes();
44
  }
45
  add_action( 'rest_api_init', 'gutenberg_register_gutenberg_rest_block_patterns', 100 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  $block_patterns->register_routes();
44
  }
45
  add_action( 'rest_api_init', 'gutenberg_register_gutenberg_rest_block_patterns', 100 );
46
+
47
+ /**
48
+ * Exposes the site logo URL through the WordPress REST API.
49
+ *
50
+ * This is used for fetching this information when user has no rights
51
+ * to update settings.
52
+ *
53
+ * Note: Backports into wp-includes/rest-api/class-wp-rest-server.php file.
54
+ *
55
+ * @param WP_REST_Response $response REST API response.
56
+ * @return WP_REST_Response $response REST API response.
57
+ */
58
+ function gutenberg_add_site_icon_url_to_index( WP_REST_Response $response ) {
59
+ $response->data['site_icon_url'] = get_site_icon_url();
60
+
61
+ return $response;
62
+ }
63
+ add_action( 'rest_index', 'gutenberg_add_site_icon_url_to_index' );
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Gutenberg ===
2
  Contributors: matveb, joen, karmatosed
3
  Tested up to: 6.0
4
- Stable tag: 13.7.3
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: 13.8.0
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7