-
Notifications
You must be signed in to change notification settings - Fork 6
Version 3 Migration
Mat Lipe edited this page Jul 5, 2024
·
5 revisions
Version 3 introduces a new baseline of WP 6.6. Anything which was deprecated by Gutenberg in WP 6.6 is still backward compatible and marked as @deprecated. Anything deprecated in WP 6.5 or earlier has been removed.
- Update site to WP 6.5.
- Update this package to the latest version 2.*.
- Convert all @deprecated items.
- Update site to WP 6.6.
- Update this package to version 3.*.
- Convert all @deprecated items (Recommended).
-
useSelect
without specifyingdeps
. RichText.multiline
RichText.onSplit
-
colorOptions
in favor ofArray<ColorOption>
. -
CheckboxControl.heading
. -
ColorPicker.defaultValue
. -
PopoverProps.anchorRef
useanchor
. -
PopoverProps.getAnchorRect
useanchor
. -
PopoverProps.isAlternate
usevariant
. - @wordpress/components
ServerSideRender
use@wordpress/server-side-render
. -
select('core').getAuthors
. -
select('core/editor').getBlockIndex
. -
select('core/editor').getBlocks
use 'core/block-editor'. -
select('core/editor').getSelectedBlockClientId
use 'core/block-editor'. -
select('core/edit-post').isEditorPanelEnabled
use 'core/editor'. -
select('core/edit-post').isEditorPanelOpened
use 'core/editor'. -
select('core/edit-post').isEditorPanelRemoved
use 'core/editor'. select('core/edit-site').getCurrentTemplateNavigationPanelSubMenu
select('core/edit-site').getHomeTemplateId
select('core/edit-site').getPage
select('core/edit-site').getNavigationPanelActiveMenu
select('core/edit-site').isNavigationOpened
-
dispatch( 'core/edit-post').removeEditorPanel
use 'core/editor' -
dispatch( 'core/edit-post').toggleEditorPanelEnabled
use 'core/editor' -
dispatch( 'core/edit-post').toggleEditorPanelOpened
use 'core/editor' dispatch( 'core/editor').clearSelectedBlock
-
dispatch( 'core/editor').selectBlock
use 'core/block-editor' - The entire '@wordpress/element' package.
_x
_nx
-
BlockClientId
useCreateBlock