diff --git a/packages/block-library/src/block/edit.js b/packages/block-library/src/block/edit.js index 1892d614dba2a..19d1f8196df50 100644 --- a/packages/block-library/src/block/edit.js +++ b/packages/block-library/src/block/edit.js @@ -183,8 +183,7 @@ export default function ReusableBlockEdit( { innerBlocks: blocks, userCanEdit: canEdit, getBlockEditingMode: editingMode, - getPostLinkProps: - getSettings().__experimentalGetPostLinkProps, + getPostLinkProps: getSettings().getPostLinkProps, }; }, [ patternClientId, ref ] diff --git a/packages/editor/src/components/provider/use-block-editor-settings.js b/packages/editor/src/components/provider/use-block-editor-settings.js index 5ab4ef3edb1b1..e280a19da6b5d 100644 --- a/packages/editor/src/components/provider/use-block-editor-settings.js +++ b/packages/editor/src/components/provider/use-block-editor-settings.js @@ -51,6 +51,7 @@ const BLOCK_EDITOR_SETTINGS = [ 'fontSizes', 'gradients', 'generateAnchors', + 'getPostLinkProps', 'hasFixedToolbar', 'hasInlineToolbar', 'isDistractionFree', @@ -75,7 +76,6 @@ const BLOCK_EDITOR_SETTINGS = [ '__unstableIsBlockBasedTheme', '__experimentalArchiveTitleTypeLabel', '__experimentalArchiveTitleNameLabel', - '__experimentalGetPostLinkProps', ]; /** @@ -100,7 +100,6 @@ function useBlockEditorSettings( settings, postType, postId ) { userPatternCategories, restBlockPatterns, restBlockPatternCategories, - getPostLinkProps, } = useSelect( ( select ) => { const isWeb = Platform.OS === 'web'; @@ -113,8 +112,6 @@ function useBlockEditorSettings( settings, postType, postId ) { getBlockPatterns, getBlockPatternCategories, } = select( coreStore ); - const { getPostLinkProps: postLinkProps } = - select( editorStore ).getEditorSettings(); const { get } = select( preferencesStore ); const siteSettings = canUser( 'read', 'settings' ) @@ -144,7 +141,6 @@ function useBlockEditorSettings( settings, postType, postId ) { userPatternCategories: getUserPatternCategories(), restBlockPatterns: getBlockPatterns(), restBlockPatternCategories: getBlockPatternCategories(), - getPostLinkProps: postLinkProps, }; }, [ postType, postId ] @@ -253,7 +249,6 @@ function useBlockEditorSettings( settings, postType, postId ) { ? [ [ 'core/navigation', {}, [] ] ] : settings.template, __experimentalSetIsInserterOpened: setIsInserterOpened, - __experimentalGetPostLinkProps: getPostLinkProps, } ), [ allowRightClickOverrides, @@ -272,7 +267,6 @@ function useBlockEditorSettings( settings, postType, postId ) { pageForPosts, postType, setIsInserterOpened, - getPostLinkProps, ] ); }