diff --git a/gutenberg b/gutenberg index ea489427a9..ff84114c6b 160000 --- a/gutenberg +++ b/gutenberg @@ -1 +1 @@ -Subproject commit ea489427a90f54b4bbbb6cf4b8df5c870efd3bf3 +Subproject commit ff84114c6b4ca6f9248d7dc53a95ce4d7e72c462 diff --git a/src/strings-overrides.js b/src/strings-overrides.js index 8a4e8e1ea6..dbe1deb894 100644 --- a/src/strings-overrides.js +++ b/src/strings-overrides.js @@ -56,3 +56,24 @@ addFilter( : defaultValue; } ); + +addFilter( + 'native.reusable_block_action_button', + 'native/reusable_block', + ( defaultValue ) => { + const { getSettings } = select( 'core/block-editor' ); + const isUnsupportedBlockEditorSupported = + getSettings( 'capabilities' ).unsupportedBlockEditor === true; + const canEnableUnsupportedBlockEditor = + getSettings( 'capabilities' ).canEnableUnsupportedBlockEditor === + true; + + const shouldOverwriteButtonTitle = + isUnsupportedBlockEditorSupported === false && + canEnableUnsupportedBlockEditor; + + return shouldOverwriteButtonTitle + ? __( 'Open Jetpack Security settings' ) + : defaultValue; + } +);