16.4.0
Changelog
Features
Components
- Introduce a basic ProgressBar component. (53030)
Block Editor
- Link Control: Persist advanced settings toggle state to preferences if available. (52799)
Block Library
- Behaviors: Extend Global Styles API to read/write behaviors config. (52370)
Enhancements
Site Editor
- Add context to the "Reset template" "Delete template" and "Edit template" commands. (52989)
- Add
xhuge
breakpoint (1920px) and update pattern grid. (52942) - Display keyboard shortcut for command palette in site view. (52841)
- Make sure only one Site updated notice displays at a time. (53087)
- Pattern library: Switch to three column layout on
huge
screens. (52927) - Template Descriptions: Tidy up all abbreviations of 'example' to be e.g. (52848)
- Try adding further details to template part panel. (52476)
- Update the
ConfirmDialog
that appears when applying a style revision over unsaved changes. (52972) - Update: Improve titles of author templates in query title block. (52732)
Post Editor
- Add common commands (breadcrumbs, live preview, pre-publish checklist). (53073)
- Use hooks instead of HoCs for:
Block Library
- Footnotes: Add link, background, and text color support. (52897)
- Image block: Fix flaky tests. (52442)
- Preformatted: Add spacing support. (45196)
- Social Links: Add Threads Icon. (52685)
- Verse: Enable the line breaks. (52928)
Patterns
- Align height of save button and patterns pagination. (52764)
- Allow inserting of unsynced patterns from quick inserter. (52866)
- Show the default patterns icons for all pattern blocks in inserter. (53208)
- Update the Manage all my patterns command to redirect to site editor patterns list. (52817)
Interactivity API
- Use defer loading strategy for frontend view scripts. (52536)
- [create-block] Refinements to the create-block-interactive-template package. (52801)
Components
- Settings: Show message when Visual or Code editor are disabled. (52737)
TabPanel
: Implement Ariakit internally. (52133)
Global Styles
- Site editor: Conditionally render global styles revisions footer in sidebar. (53204)
Block Editor
- Remove duplicated display URL in LinkControl. (53167)
Synced Patterns
- Remove extraneous "Detach" ToolbarButton for synced patterns. (53121)
Icons
- Add keyboard icon and use in relative commands. (53083)
Plugin
- Bump plugin minimum supported PHP version to 7.0. (52982)
Data Layer
- Promisify action creator return type for WP data dispatch. (52530)
Bug Fixes
Block Library
- Avatar: Fix global border styles generation. (53007)
- Check if object exists before accessing its properties. (52870)
- Cover block: Disable contrast checker. (53080)
- Disambiguate "Import" button string. (52907)
- Footnotes:
- Image block: Fix image size at wide and full width. (53184)
- Navigation Sidebar: Fetch the blocks from the content when trying to load navigations. (52899)
- Navigation: Load the raw property on the navigation fallback. (52758)
- Remove block tools back compat component schedule for deprecated in 6.3. (53115)
- Verse: Disable line breaks. (52783)
- Video: Fixing styles that vertical alignment of the video. (53131)
Site Editor
- Add navigation type to title labels map. (53074)
- Command Palette:
- Add
Open styles revisions
command conditionally. (52945) - Command Palette: Remove double border on results pages. (52873)
- CommandPalette: Fixed to not execute commands in IME composition. (52844)
- Defer to preceding handlers in command palette keyboard shortcut. (53001)
- [Core Commands]: Handle navigation commands based on access of site editor. (52987)
- Add
- Fix block top toolbar artifact in navigation isolation. (53110)
- Fix canvas mode sync with URL. (52996)
- Fix the template parts link on the list page. (52891)
- Open template parts from the list page in canvas view mode. (52916)
- Fix the typo in the title label map. (53071)
- Fix: Block toolbar obscuring document tools when Top Toolbar is enabled. (52722)
- ResizableFrame: Account for window resizing. (52697)
- Sidebar: Restore Back button 'go to parent' functionality. (52910)
- Top toolbar: Fix issues with save button overlap and plugin buttons. (53101)
- Update document title buttons radius. (53221)
Patterns
- Add id to pattern inserted notice to stop multiple notices stacking. (52746)
- Allow orphaned template parts to appear in "general" category. (52961)
- Correctly color code unsynced patterns titles in Site Editor. (52958)
- Fix auto-size patterns triggering scrollbar flickering on certain size. (52921)
- Fix color and behavior of unsynced patterns in block inserter when searching for
reusable
. (53205) - Fix editor crashing on certain search filter combinations. (52956)
- Fix empty general template parts in Patterns. (52747)
- Fix not expanding pattern in page editor. (53169)
- Fix: Snack bar not fixed on certain pages in the Site Editor. (53207)
- Pattern: Add getBlockRootClientId call. (53206)
- Patterns Browse Screen: Fix back button when switching between categories. (52964)
- Reset current page when search filters change. (52933)
- Site Editor: Fix site link accessibility issues. (52744)
- Site Editor: Use the correct icon for Patterns in sidebar card. (52931)
Post Editor
- Allow styles to be changed dynamically through editor settings. (52767)
- Distraction Free: Fix conflict with
showListViewByDefault
preference. (52914) - Editor: Set default parameter for '__unstableSaveForPreview'. (53079)
- Fix toolbar when previewing devices in post editor. (52770)
- I18N: Add missing Gettext wrapper on strings in Edit Post overview sidebar. (52971)
- shimAttributeSource: Don't run outside the registerBlockType filter. (53015)
Global Styles
- Global styles revisions: Display text if no revisions are found. (52865)
- Spacing presets: Fix bug with select control adding undefined preset values. (53005)
- Style Engine: Switch off optimize by default. (53085)
Block Editor
- Fix spacing for LinkControl actions. (53055)
- List: Allow ENTER on multi-selection. (52947)
- List: Fix merging nested lists. (52949)
Design Tools
- Borders: Prevent console error when clearing custom border color. (52963)
- Check if spacing tool is defined before displaying controls. (53008)
Distraction Free
- Add missing command in Site Editor. (52868)
- Distraction Free Keyboard Shortcut: Fix notices in Site Editor. (52867)
Layout
- Prevent the Dimensions UI from being displayed when the block does not support Dimensions. (53092)
List View
- Ensure
onBlockDrop
does not fire if there is no target. (52959)
Template Editor
- Site Editor: Don't navigate to the patterns in Template Parts mode. (52884)
Navigation Menus
- Navigation: Backport Core changes for the navigation fallback. (52878)
REST API
- Global styles revisions: Update
private
methods toprotected
. (52748)
Block API
- Parser / Site Editor: Ensure
autop
is not run when freeform block is set to core/html. (52716)
Accessibility
- Fix regression with Edit site Navigate regions. (52940)
- Return focus more from focus return hook. (52710)
- [Commands]: Add
aria-activedescendant
attribute to suggestions. (52930)
Components
- ColorPalette, BorderControl: Don't hyphenate HEX value in
aria-label
. (52932) Modal
: Fix loss of focus when clicking outside. (52653)
Patterns
- My Patterns page: Increase color contrast for the toggle group. (52678)
Post Editor
- Improve consistency of the Post Editor and Site Editor Document actions. (52246)
Performance
- Replace
array_key_exists()
withisset()
check. (53098)
Block Library
- Footnotes: Use static closures when not using '$this'. (52781)
Experiments
Block Library
- Set freeform handler only if Classic block exists. (52936)
- Backend handle freeform blocks with TinyMCE removal. (52938)
- Fix TinyMCE removal for heartbeat requests. (52935)
Interactivity API
- Improve the Interactivity API priority levels logic. (52323)
- Remove the
wp-show
directive temporarily. (53240)
Block API
- Auto-inserting blocks on the frontend and in the editor (via REST API). (51449)
Documentation
- API Reference documentation for Interactivity API. (52948)
- Adding description of the
--no-watch
option. (53139) - Adds documentation about selectors. (52941)
- Add Block API Version 3. (53046)
- Added missing images via developer.wp.org site. (53051)
- Clarify that
blockGap
support depends on layout support. (53254) - Interactivity API > Getting Started Guide - minor adjustments. (52786)
- Update Appearance Tools. (52785)
- Open "docs" folder for the Interactivity API package and Getting Started Guide. (52462)
- Update the Gutenberg release process documentation. (52955)
Code Quality
- Add options for debugging PHP unit tests in package.json. (52778)
- Block Editor: Fix ESLint warning for the
useBlockEditingMode
hook. (53218) - Block Editor: Simplify check in 'withBlockControls' styles hook. (53227)
- BlockVariationPicker: Remove unused
withSelect
. (53100) - Enforce checks against redeclaration for functions and classes. (52696)
- Improve the efficiency of the
useDebouncedInput
hook. (53263) - Refactor
useShowMoversGestures
hook. (52792) - Remove
withSpokenMessages
HoC from the Link format. (53106) - Site Editor: Remove unnecessary hook from 'PageTemplates'. (52903)
- [Create Block] Add support for the example property and add template defaults. (52803)
Block Library
- Add PHP since annotations. (52820)
- Footnotes: Add missing _ in revision field filter. (53135)
- Refactor navigation title usage. (52807)
- Template Part Block: Use
get_block_file_template
for rendering. (52892)
Global Styles
- Don't use named arguments for
sprintf
. (52782) - Remove experimental setting for interactivity API and behaviors. (52833)
- Site editor: Update function name. (52869)
- Update PHP unit tests. (52819)
Interactivity API
- Move Store's data encoding to the
echo
call. (51974) - Update the
block.json
schema to include Behavior supports. (52895)
Typography
- Fluid typography: Rename viewport variables. (53082)
Components
- Update framer-motion to 10.13.0. (52804)
Themes
- Behaviors - Lightbox: Update theme.json schema. (51156)
Tools
- Add GH action to enforce PR labels. (52760)
- Changelog automation:
- Enforce PR labels:
- Use proper casing on PR template. (52999)
Testing
- Add end-to-end tests for Behaviors in the site editor. (52809)
- Ignore local test theme folders created by
wp-env
. (53031) - Improve slug generation & matching in request utils. (52414)
- Migrate 'iframed inline styles' end-to-end tests to Playwright. (53269)
- Migrate Allowed Block Test to Playwright. (53171)
- Patterns: Reinstate template parts mode spec. (52780)
- Route to published post instead of homepage on navigation end-to-end tests. (52802)
- Temporarily skip widget import end-to-end test. (53226)
- Update end-to-end tests that use code editor. (52788)
First time contributors
The following PRs were merged by first time contributors:
- @Armondal: Adding description of the
--no-watch
option. (53139) - @lunaluna: Video: Fixing styles that vertical alignment of the video. (53131)
Contributors
The following contributors merged PRs in this release:
@aaronrobertshaw @afercia @andrewserong @anton-vlasenko @Armondal @artemiomorales @audrasjb @bph @c4rl0sbr4v0 @carolinan @chad1008 @danielbachhuber @DAreRodz @dcalhoun @derekblank @draganescu @ellatrix @fluiddot @geriux @getdave @glendaviesnz @hellofromtonya @jameskoster @jasmussen @jeherve @jeryj @jordesign @jorgefilipecosta @jsnajdr @juanmaguitar @kevin940726 @luisherranz @lunaluna @Mamaduka @mburridge @michalczaplinski @mikachan @mirka @ndiego @noahtallen @noisysocks @ntsekouras @ockham @pedro-mendonca @pooja-muchandikar @priethor @ramonjd @richtabor @ryanwelcher @scruffian @shimotmk @Soean @stokesman @swissspidy @t-hamano @tellthemachines @torounit @tyxla @westonruter @WunderBart