15.2.0
github-actions
released this
22 Feb 13:52
·
15 commits
to release/15.2
since this release
Changelog
Enhancements
Working with Templates
- Add a nested level when selecting templates or template parts. (47777)
- Add: Modal to choose a start pattern on new templates. (46248)
- Update gutenberg_get_template_hierarchy. (47716)
- Add template revision button. (45215)
Site Editor
- Add back link to Design heading in site editor navigation to return to Dashboard. (47950)
- Adds a global save button to the site editor. (47142)
- Tidy up the generation of the site editor page title. (48053)
Block Library
- Button: Update: Make button a content block. (47936)
- File block: Add color block support to File block. (41870)
- Navigation: Add integration tests for NavigationMenuSelector component. (47825)
- Navigation: Updates "Add Submenu item" text to "Add Submenu link". (48030)
- Post excerpt: Add excerpt length control. (44964)
- Update: Make OffCanvasEditor use LeafMoreMenu by default. (47844)
- Add aspect-ratio to post featured image block. (47854)
- Button: Adopt support for border color, style, and width. (44574)
- Latest Comments: Add typography support. (43310)
- Verse: Adopt border supports. (48021)
Global Styles
- Extract the Global Styles Typography Panel into block-editor package. (47356)
- Move more link about custom CSS to part of description. (47781)
- Site Editor: Update 'Additional CSS' subtitle string. (47671)
- Style Book: Exclude blocks that are not allowed to insert. (47461)
Block Editor
- Migrate from TextControl to NumberControl to remove margin overrides. (47160)
- Add settings "drawer" to Link Control. (47328)
- Button: Prepend HTTP to Buttons block links when missing protocol. (47311)
- Show a pointer/hint in the settings tab informing the user about the styles tab. (47670)
- [Patterns]: Reorder pattern categories. (47760)
Components
- Add parent navigation support for the navigator component. (47883)
- Zoom out mode: Scale iframe instead of contents. (47004)
- Components: Add support for named arguments in the navigator components. (47827)
Bug Fixes
Block Library
- Embed: Fix: Remove browser default border for iframe in the editor. (47987)
- File block: Re-add editor styles for classic themes. (47686)
- Image: Revert "Prevent the image from being resized larger than its container". (47846)
- Image: Update image block margins on RTL. (47617)
- Navigation Block inspector: Fix link UI popover opening on links that have a URL. (47828)
- Navigation: Close Link UI if cancelled. (48029)
- Navigation: Enable undo after creating a new menu. (47683)
- Navigation: Fixes undo and redo for nesting operations in the navigation block's inspector. (47633)
- Navigation: Remove the IS_GUTENBERG_PLUGIN check around block_core_navigation_parse_blocks_from_menu_items. (47824)
- Navigation: Update deps for the useEffect that creates navigation menus. (47912)
- OffCanvasEditor: Only allow some blocks to be converted to submenus. (47974)
- Page List: Respect the selected parent page when converting to a list of navigation links. (47651)
- Read More: I18N: Update string concatenation method in read more block. (47815)
- ToolsPanel: Display optional items when values are updated externally. (47727)
- [Quote]: Fix deprectated large style specificity rule. (47969)
- Fix the 'WP_HTML_Tag_Processor' file path. (47823)
- Cover: Ensure url is not malformed due to sanitization through wp_kses. (47906)
Site Editor
- [Block Editor]: Lock blockInspectorAnimation setting. (47740)
- Disable Strict Mode, breaks dev site editor. (47701)
- Add: Modal to choose a start pattern on new templates. Take 2. (47927)
- Fix ComplementaryArea's initial isActive state. (47498)
- Fix custom Template Parts rename action. (47932)
- Fix site editor navigation. (48025)
- Shadow: Move shadow into own panel. (47634)
- Specify active state color for template navigation button. (47851)
Block Editor
- useBlockSync: Change subscribed.current on unsubscribe. (47752)
- Edit Post: Fix the 'inlineToolbar' settings toggle. (47960)
- Fix clicking on the toggle button not closing the block inserter. (47926)
- LinkControl: Fix scrollbar displayed on toggle link settings. (47986)
- Rich text: Stabilise onFocus. (47685)
- Block Spacing: Don't show UI when only one direction is supported. (47523)
- [Layout]: Fix align controls for hybrid themes. (47961)
Design Tools
- Avatar: Fix application of borders. (47630)
- Image: Allow deprecated blocks to render border-radius. (47766)
- ToolsPanel: Ensure display of optional items when panel id is null. (47864)
Global Styles
- Fix incorrect targeting of block wrappers for root padding in the edi…. (48002)
- Fix infinite render of inline block preview. (47697)
- Fix: Issues on block level settings. (47842)
Components
- ColorPalette: Ensure text label contrast checking works with CSS variables. (47373)
- SelectControl: Fix multiple prop styling. (47893)
Post Editor
- Fix multi entities saved state in the post editor. (47734)
- LocalAutosaveNotice: Use stable notice id to prevent double notices. (47776)
- Distraction free mode: Fix keyboard shortcut not working. (47900)
- Term sorting is incorrect in flat term selector. (47795)
- useResizeObserver: Handle strict mode double effects. (47703)
Accessibility
- List view: Modify the shortcut to focus while open. (45135)
- Add an aria label to the site save dialog. (47898)
- Fix UrlInput combobox to use the ARIA 1.0 pattern. (47148)
- Fix constrained tabbing failures with Safari and Firefox. (47426)
- Fix the headings hierarchy in the styles sidebar. (43848)
- Site Editor: Append template type and name to the site editor page title. (47855)
- Template editor: Only disable the save button if no changes rather than hiding it. (47895)
Performance
- Avoid string-allocation on keypress with inputRule. (47094)
- Fix empty results handling in performance test results. (47646)
- Fix typo in performance script name. (47647)
- Lodash: Remove from @wordpress/keycodes package. (47737)
Block Editor
- Block Editor: Optimize __unstableGetVisibleBlocks(). (47681)
Site Editor
- Enable React StrictMode again. (47639)
Block Library
- Navigation: Performance: Improve params in block_core_navigation_get_most_recently_published_navigation. (47998)
- Page List: Block improvement.. (47981)
- Page List: Performance: Improve page list callback. (48004)
- Post Title: Performance: Render_block_core_post_title - Use post object instead of id. (48001)
- Template Part: Performance: Replace usage of wp_get_theme()->get_stylesheet() with get_stylesheet(). (48027)
- Tweaks to gutenberg_render_layout_support_flag. (48003)
Data Layer
- Lodash: Refactor away from _.get() in resolvers cache middleware. (47743)
- Lodash: Refactor away from _.mapValues() in data registry. (47742)
- Lodash: Refactor persistence plugin away from _.merge(). (47790)
- Lodash: Remove from @wordpress/data's getResolutionState(). (47838)
- Lodash: Remove from @wordpress/data. (47848)
- Lodash: Remove from useDispatchWithMap(). (47835)
Template Editor
- Disable lazy loading term meta get_block_templates. (47999)
Themes
- Improvements on append_to_selector method. (47833)
Block Directory
- Optimize DownloadableBlocksPanel. (47679)
Experiments
- Handle block metadata attribute and related experimental APIs. (47791)
- Rename the "experiments" export to "privateApis". (47975)
- [Trunk] Rename experiments package to private-apis. (47839)
Documentation
- Add: Database credentials to wp-env documentation. (47940)
- Block schema and block supports docs: Add dimensions and position settings. (48057)
- Components: Polish heading level component APIs. (47788)
- Docs: Add ancestor property to block-registration.md doc. (45832)
- Docs: Don't recommend using short array syntax in WP_HTML_Tag_Processor. (47958)
- Docs: Fix the incorrect link to eslint-plugin-jsx-a11y. (47773)
- Fix unbalanced parenthesis in Element README. (47700)
- Minor updates in Private APIs. (47953)
- Set block attributes to require either type or enum. (45365)
Code Quality
- Core Data: Fix ESLint warnings for the hooks directory. (47811)
- ESLint: Change jsdoc/check-line-alignment from warn to error. (47878)
- ESLint: Fix a bunch of ESLint alignment warnings. (47872)
- Enable react-hooks/exhaustive-deps eslint rules. (24914)
- Update moment and moment-timezone packages to fix timezone issues. (47879)
Components
- AnglePickerControl: Refactor to TypeScript. (45820)
- BorderBoxControl: Migrate tests to TypeScript, remove act() call. (47755)
- BoxControl: Convert to TypeScript. (47622)
- ComboboxControl: Convert to TypeScript. (47581)
- CustomSelectControl: Privatise __experimentalShowSelectedHint using @wordpress/experiments. (47229)
- CustomSelectControl: Update size prop options to new format in Storybook examples. (47779)
- Navigator: Add more pattern matching tests, refine existing tests. (47910)
- NavigatorButton: Reuse Button types. (47754)
- Panel: Convert to TypeScript. (47259)
- Popover: Lock the __experimentalPopoverPositionToPlacement function. (47505)
- Refactor Toolbar component to TypeScript. (47087)
- Remove BaseField component. (47911)
- Remove unnecessary act() from Button tests. (47687)
- Remove unnecessary act() from DropdownMenu tests. (47692)
- Remove unnecessary act() from Popover tests. (47690)
- Remove unnecessary act() from ToolsPanel tests. (47691)
- ResizableBox: Refactor styles to TypeScript. (47756)
- TreeGrid: Convert to TypeScript. (47516)
- MenuItemsChoice: Refactor to TypeScript. (47180)
- ToolsPanel: Refactor Storybook examples to TypeScript, fix types inconsistencies. (47944)
Block Library
- Gallery: Minor code quality update. (47774)
- Image: Simplify the method for getting block editor settings. (47903)
- Navigation: Chore Remove unexistant parameter from selectNavigationMenus call. (47941)
- Site Logo: Simplify the method for getting block editor settings. (47736)
- Table Block: Don't render empty section. (47753)
Site Editor
- Make process_blocks_custom_css method protected. (47725)
- Move site editor 6.2 specific code to the right file. (48023)
- Remove: Unused code from the navigation inspector select logic. (48044)
- Sync: Widget import changes from the core. (47875)
- Add missing period in keyboard shortcut descriptions. (47899)
- Extract the getSupportedStyles selector to the blocks store as a private selector. (47606)
- Remove the name and element props from the TypographyPanel component. (47908)
Post Editor
- Edit Post: Remove unnecessary 'classnames' in Header component. (47635)
REST API
- Chore: Move Gutenberg_REST_Templates_Controller from 6.2 to 6.3 compatibility. (48077)
Patterns
- Refactor: usePatternsCategories: Simplify category sorting. (47843)
Document Settings
- Most Used Terms: Pass dependency to the useSelect. (47810)
Block API
- HTML API: Move into 6.2 Compat Folder since inclusion in Core. (47749)
Data Layer
- Fixed incorrect type annotations in @wordpress/data. (46881)
Tools
Testing
- Add tests for gutenberg_render_layout_support_flag. (47719)
- Migrate Heading block tests to Playwright. (47955)
- Migrate query test to Playwright. (47995)
- Navigation: end-to-end tests: Default to classic menu. (47867)
- Navigation: end-to-end tests: Default to my only existing menu. (47744)
- Remove obsolete failing test for Font Size Picker. (47913)
- Shard playwright tests into two separate jobs using a matrix. (47629)
- Update code and tests for theme json class after the back port in core. (47668)
- Upgrade Playwright to 1.30.0. (48007)
- end-to-end perf tests: Run each test in a separate page. (47889)
- Fix editor.getBlocks for unmodified default block. (48093)
- Visual Regression tests: Use default playwright utils. (47991)
- Navigation: Add warning test. (45207)
Build Tooling
- Add basic tsconfig.json validation. (47595)
- Front-end classic performance test: Set TwentyTwentyOne when running in isolation. (47965)
- Perf tests: Store test run results as artifact. (45747)
- Performance suite: Track Largest Contentful Paint in the front-end. (47938)
- Scripts: Add PostCSS (.pcss extension) file support to wp-scripts. (45352)
- Performance: Restore initial reduce value in perf results log script. (47650)
- Cherry-pick CLI: Fix the default label to match the documentation. (47832)
- Scripts: Use start without watcher using --no-watch. (44237)
- Fonts API: Add missing files to lib/load.php. (48108)
- Dependency Extraction Webpack Plugin: Update json2php dependency. (47831)
First time contributors
The following PRs were merged by first time contributors:
- @creative-andrew: Add: Database credentials to wp-env documentation. (47940)
- @dpellenwood: Scripts: Add PostCSS (.pcss extension) file support to wp-scripts. (45352)
- @griffinjohndavid: Set block attributes to require either type or enum. (45365)
- @mike-day: Refactor Toolbar component to TypeScript. (47087)
Contributors
The following contributors merged PRs in this release:
@aaronrobertshaw @adamziel @afercia @ajlende @alexstine @andrewserong @aristath @brookewp @carolinan @ciampo @creative-andrew @d-alleyne @dcalhoun @dmsnell @dpellenwood @draganescu @ellatrix @flootr @fluiddot @georgeh @geriux @getdave @glendaviesnz @griffinjohndavid @gziolo @hellofromtonya @jhnstn @jorgefilipecosta @jsnajdr @kebbet @kevin940726 @kkmuffme @madhusudhand @MaggieCabrera @Mamaduka @marekdedic @mauteri @mcsf @mike-day @mirka @mreishus @nielslange @noahtallen @noisysocks @ntsekouras @oandregal @scruffian @sgomes @SiobhyB @spacedmonkey @t-hamano @talldan @tellthemachines @tyxla @wojtekn @WunderBart @youknowriad