github WordPress/gutenberg v13.2.0
13.2.0

latest releases: @wordpress/widgets@3.28.9, @wordpress/scripts@27.2.6, @wordpress/reusable-blocks@4.28.9...
24 months ago

Changelog

Features

  • Add new preferences persistence API, and save editor preferences in user meta. (39795)

Enhancements

  • Add visualizers for padding and margin for all blocks. (40505)
  • Remove the spotlight mode from template parts. (40652)

Block Library

  • Placeholders:
    • Update post content placeholder. (40177)
    • Update the placeholder for post excerpt. (40178)
    • Add placeholder to Post Comments block. (40484)
    • Improve the logic for warnings for Post Comments Form placeholder. (40563)
    • Post Comments Form: Add "proper" visual representation in the editor. (40368)
  • Comments Query Loop: Add Post Comments Form block to Comments Query Loop template. (40256)
  • Post Comments block: Enqueue comment-reply script. (40366)
  • Cover: Avoid unnecessary wrapping when transformed from Group. (40602)
  • Quote v2: Implement exiting on Enter at end. (39911)
  • Separator Block: Add top & bottom margin support. (40551)

Components

  • Fix async timing in tests using user-event. (40790)
  • Add flag for larger default size. (InputControl: 40622, UnitControl: 40627)

Site Editor

  • Use default cursor for non-editable text blocks. (40785)

Block Editor

  • Show add pattern label when patterns are being prioritised. (40598)
  • Improve button spacing in the top right corner of the editor. (40411)

Document Settings

  • Design tweaks to Post Visibility popover. (40530)

Global Styles

  • Global Styles Sidebar: Tweak separator margin. (40526)

Webfonts

  • Register all fonts before enqueing any. (40489)
  • Turn off WP 6.0 stopgap handler to use Webfonts API. (40555)

Block API

  • Allow using a custom domainpath for viewscripts. (40136)
  • Add settings hook. (40547)

Post Editor

  • Editor: Refactor PostFeaturedImage component to improve uploading state (40126)

Bug Fixes

Block Library

  • Audio: Correctly handle drag and drop upload errors. (40623)
  • Comments:
    • Comment Content: Show moderation message. (40612)
    • Comment Template: With pagination, make sure to request page 1 if there are no comments. (40759)
    • Comments Title: Count toggle working in 'Singular' editing mode (fix). (40728)
    • Comments block: Fix glitches found while backporting. (40628)
    • Fix alignment issue with comment author name. (40610)
    • Fix alignment issue with the comment edit link. (40584)
    • Fix alignment issue with the comment reply link. (40582)
    • Fix an alignment issue with the post comments form. (40613)
    • Fix style comment awaiting moderation indentation. (40681)
    • Prevent comments rendering on password protected posts. (40755)
    • Display paragraph breaks in comment contents block.. (40667)
    • Prevent spam links of author's name in pending moderation comments. (40702)
  • Cover Block: Fix focal point error when the Featured Image is applied. (40643)
  • Cover: Avoid adding a wrapper Group block when transforming to Group, where possible. (40293)
  • Cover Block: Fixed iOS bug handling background-attachment to properly work with iOS 13+. (40087)
  • Navigation block "Open on click": Inherit font style and font weight. (40671)
  • Post Author: Switch byline to use kses so that rich text elements are rendered correctly. (40776)
  • Latest Post: Fix regression with featured images in latest posts. (40662)
  • Video: Fix drag and drop upload error state. (40552)
  • Heading: Include text alignment when transforming from paragraph to header and back. (40709)
  • No Results: Remove a typo from the no results block. (40573)

Components

  • UnitControl
    • Avoid calling onChange callback twice when unit changes. (40796)
    • Show unit label when units prop has only one unit. (40784)
  • Gradient Tool: Fix closing of popover when the angle control is clicked. (40735)
  • Simpler clear button (40437)

Block Editor

  • Fix dragging in inspector causing block deselection. (40604)
  • [RichText]: Ignore selection changes on non contentEditable nodes. (40611)
  • [Writing Flow]: Try to fix multi-selection with shift+click. (40687)
  • Fix the styles compatibility hook for the editor iframes. (40842)

Patterns

  • Fix core 'Featured' pattern category registration. (40650)
  • Fix: Page patterns don't show when only one pattern is available. (40707)

Block Locking

  • Avoid 'lock' attribute registration warning. (40654)
  • Register the 'lock' attribute on the server. (40468)

Code Editor

  • Commit changes upon switching editors to avoid content loss. (40730)

Navigation Menu Sidebar

  • Fix Nav Sidebar Site Editor error. (40722)
  • Close overlay menu when clicking an anchor link. (39625)

Icons

  • Fix/block meta icon prop errors. (40710)
  • Fix the Icon component mobile icon. (40748)

Global Styles

  • Element styles: Prevent the WordPress filter callback from being executed. (40594)
  • Global Styles Sidebar: Fix nav header styles and semantics. (40592)
  • Global Styles Sidebar: Tweak spacing. (40588)

Data Layer

  • useSelect: Prevent nested component update after unmount. (40677)
  • core-data: Change "include" type in getQueryParts. (40570)

Themes

  • Theme Export: Bug: Add .DS_Store to the list of ignored files. (40539)

Reusable Blocks

  • Fix template part / reusable block click through on non-safari browsers. (40339)

Block API

  • Check that a transform matches at the time of running the transform. (40497)

Accessibility

Components

  • Improve tools panel accessibility. (40716)

Block Editor

  • URLInput now always has an ID and accessible label. (40310)

Block Library

  • Post Comments block: Fix missing label in placeholder. (40527)

Performance

Block Editor

  • getBlockTransformItems: Support single block object. (40718)

Block Library

  • Navigation Link: Avoid unnecessary re-renders. (40696)
  • Navigation: Improve selector performance. (40700)

Experiments

CSS & Styling

  • Style Engine: Add typography and color to backend. (40332)

Documentation

  • Docs: Omit name from settings object in registerPlugin. (40629)
  • Docs: Update the Block Metadata title. (40482)
  • Fix ColorPalette component's documentation. (40620)
  • Fix indentation inconsistency in documentation for block variations. (40515)
  • Fix broken links. (40578)

Components

  • Add TypeScript refactor guidelines. (40153)
  • InputControl: Remove default value argument from Storybook. (40410)
  • Components: Fix error in CONTRIBUTING guide. (40682)
  • Components: Update changelog for #40735. (40797)
  • Fix/typos in documentation. (40579)

Themes

  • Adding schema info to theme.json reference. (40599)

Code Quality

  • Block Editor: Deprecate 'BlockColorsStyleSelector' component. (40502)
  • Global Styles Sidebar: Rename NavigationButton so semantics are clearer. (40590)
  • Handle promise rejections from preferences persistence if the user is offline or the REST API errors. (40641)
  • Improve the useDisabled hook and Disabled component. (40631)
  • Preferences persistence - mark modified property as not readonly in schema. (40637)
  • Preferences: Improve initial configuration for the new persistence package. (40715)
  • Remove padding prop from popover. (40544)

Components

  • Add DatePicker tests using React Testing Library. (40754)
  • Borders: Remove unused BorderStyleControl component. (40635)
  • Migrate ConfirmDialog component's Stories from knobs to controls. (40164)
  • SelectControl: Finish typescript migration. (40737)
  • [components] Use internal Icon component for ToggleGroupControlOptionIcon. (40717)
  • TextControl: Covert component to TypeScript. (40633)

Block Library

  • Comments Query Loop block: Rename to Comments (but keep ID). (40763)
  • Post Comments Form Block: Mark as stable. (40452)
  • Remove Navigation Area block. (40645)
  • Remove testid and update tests. (40534)
  • Refactor: Reuse code of the editor placeholder across Post Comments and Post Comments Form. (40560)

Data Layer

  • useSelect: Improve transition from async to sync mode. (40680)

List View

  • Rename list view prop expandNested to isExpanded. (40731)
  • Tidy list view props and deprecate BlockNavigationDropdown. (40777)

Post Editor

  • Edit Post: Remove unused code. (40499)

Plugin

  • Remove experimental PWA support for WP-Admin. (40475)

Tools

  • Remove @mkaz from CODEOWNERS 😢. (40685)
  • Scripts: Add --dist-tag flag to the packages-update command. (40514)
  • Scripts: Remove broken lint-md-js command. (40511)
  • Scripts: Remove deprecated format-js command. (40512)
  • Update oandregal notifications. (40549)
  • Update native mobile wrangler in rich-text CODEOWNER. (40783)
  • Export hydrate in @wordpress/element. (40723)

Storybook

  • Storybook: Make description-loader more reliable. (40616)

Testing

  • Comment Template Unit Test: Cover odd/even classes. (40471)
  • Comments block end-to-end test: Remove now-obsolete Post Comments Form block. (40793)
  • Migrate Image Size to Playwright. (40467)
  • Migrate paragraph test to Playwright. (40779)
  • Refactor image-size test to follow Playwright's best practices. (40644)
  • Remove require editor hooks line from full-content test setup. (40772)
  • Tests: Restore real timers after using Jest's fake timers. (40760)
  • Update @testing-library/user-event to stable version (14.1.1). (40761)
  • [Automated Testing]: Fix partial selection copy flaky tests. (40607)
  • Retain Playwright end-to-end test's trace on failure on CI. (40586)
  • Rewrite UnitControl tests in TypeScript. (40697)
  • Fix batchRest not throwing errors in Playwright. (40668)
  • Fix replacing with undefined in stripAnsi. (40384)
  • Nav link block PHP tests replace prefixed function with non-prefixed. (40657)
  • Fix the html data is wrong in clipboard emulation in Playwright. (40638)
  • Fix incorrect results in the flaky tests reporter. (40567)

Build Tooling

  • Eslint: Add TypeScript tests and stories to development files. (40504)
  • Fix: npm script(dev:Package) is not working on Windows. (40566)
  • ESLint Plugin: Fix recommended preset when prettier is not installed. (40634)

First time contributors

The following PRs were merged by first time contributors:

Don't miss a new gutenberg release

NewReleases is sending notifications on new releases.