fix: resolve WP 7.0 / Gutenberg editor deprecations#2876
Open
Soare-Robert-Daniel wants to merge 1 commit into
Open
fix: resolve WP 7.0 / Gutenberg editor deprecations#2876Soare-Robert-Daniel wants to merge 1 commit into
Soare-Robert-Daniel wants to merge 1 commit into
Conversation
Editor console deprecations surfaced under WP 7.0 / Gutenberg, fixed across lite and pro: - captcha: Block API v2 -> v3 (6.9) - options sidebar: import PluginSidebar/PluginSidebarMoreMenuItem from @wordpress/editor (6.6) - otter-store: registerGenericStore -> createReduxStore + register (5.9) - preferences: read/write hiddenBlockTypes under the 'core' scope (6.5) - device type: core/editor getDeviceType/setDeviceType instead of core/edit-post __experimentalGetPreviewDeviceType (6.5) - toolbar controls: use ToolbarButton; mark the Design Library header button as a toolbar item (5.6) - interface scope: enableComplementaryArea( 'core', ... ) not 'core/edit-post' (6.6) - date: getSettings instead of __experimentalGetSettings (6.1) - icon-list item: RichText onSplit -> block.json supports.splitting (6.4) - FormFileUpload: opt into __next40pxDefaultSize (6.8 / removal 7.1) - countdown: fix malformed timezone offset (+0:0) fed into moment(), which forced a fallback to the JS Date constructor Deferred, documented: advanced-heading onSplit (core splitting would convert the styled heading tail to a plain paragraph) and the broad TextControl 40px migration (tracked separately, removal in 7.1). Tests: - unit: getTimezone returns a valid ISO 8601 offset (red->green) - e2e: icon-list splits into same-type items on Enter (guards the onSplit -> supports.splitting migration) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Bundle Size Diff
|
Contributor
|
Plugin build for 2b2ed70 is ready 🛎️!
|
Contributor
E2E TestsPlaywright Test Status: See serial and parallel matrix jobs Performance ResultsserverResponse: {"q25":458.3,"q50":490.8,"q75":498.3,"cnt":10}, firstPaint: {"q25":581.5,"q50":637.75,"q75":760.7,"cnt":10}, domContentLoaded: {"q25":3262.5,"q50":3305.1,"q75":3328.4,"cnt":10}, loaded: {"q25":3264.6,"q50":3306.95,"q75":3330.5,"cnt":10}, firstContentfulPaint: {"q25":3805.5,"q50":3843.1,"q75":3868.7,"cnt":10}, firstBlock: {"q25":13499.3,"q50":13578.15,"q75":13636,"cnt":10}, type: {"q25":20.98,"q50":22.15,"q75":24.02,"cnt":10}, typeWithoutInspector: {"q25":17.6,"q50":19.54,"q75":20.27,"cnt":10}, typeWithTopToolbar: {"q25":26.57,"q50":27.91,"q75":30.3,"cnt":10}, typeContainer: {"q25":13.12,"q50":13.53,"q75":16.46,"cnt":10}, focus: {"q25":104.23,"q50":105.86,"q75":111.92,"cnt":10}, inserterOpen: {"q25":37.58,"q50":38.4,"q75":39.57,"cnt":10}, inserterSearch: {"q25":12.41,"q50":12.44,"q75":12.64,"cnt":10}, inserterHover: {"q25":4.7,"q50":4.88,"q75":5.32,"cnt":20}, loadPatterns: {"q25":1487.46,"q50":1503.25,"q75":1622.37,"cnt":10}, listViewOpen: {"q25":207.21,"q50":212.53,"q75":226.28,"cnt":10} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves the editor-console deprecation warnings that surface under WP 7.0 / Gutenberg, across both the lite and pro bundles. Each fix targets the documented stable replacement; behavior is preserved.
apiVersion: 3wp.editPost.PluginSidebar/PluginSidebarMoreMenuItem@wordpress/editorwp.data.registerGenericStore(otter-store)createReduxStore+registercore/preferenceshiddenBlockTypesnamespacecorescope__experimentalGetPreviewDeviceType(core/edit-post)core/editorgetDeviceType/setDeviceTypeToolbarButton;data-toolbar-itemon the Design Library header buttoncore/edit-postinterface scopeenableComplementaryArea( 'core', … )wp.date.__experimentalGetSettingsgetSettingsRichTextonSplit(icon-list item)block.jsonsupports.splittingFormFileUpload36px default__next40pxDefaultSizemomentmalformed timezone offset (countdown)getTimezone()to emit a valid ISO±HH:MMoffsetDeferred (documented, intentional)
onSplit— coresupports.splittingconverts a heading's split tail to a plaincore/paragraph, dropping all heading styling. Left as-is to avoid a real regression; needs a style-preserving transform.TextControl40px migration — broad, plugin-wide; tracked separately. Has a hard 7.1 removal.Test plan
helper-functions-timezone.test.ts):getTimezone()returns a valid ISO 8601 offset for UTC, whole, negative, and fractional offsets — genuine red (+0:0) → green.icon-list.spec.js): pressing Enter mid-text splits an item into two same-type icon-list items with the content divided at the caret — guards theonSplit→supports.splittingmigration.phpstan: no errors.lint: 0 errors.🤖 Generated with Claude Code