diff --git a/assets/js/templates/revert-button/index.tsx b/assets/js/templates/revert-button/index.tsx index f68f117b22d..60cc2a0b272 100644 --- a/assets/js/templates/revert-button/index.tsx +++ b/assets/js/templates/revert-button/index.tsx @@ -6,7 +6,7 @@ import { subscribe, select, useSelect, useDispatch } from '@wordpress/data'; import { BlockInstance, createBlock } from '@wordpress/blocks'; import { Button, PanelBody } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; -import { useMemo } from '@wordpress/element'; +import { createInterpolateElement, useMemo } from '@wordpress/element'; import { useEntityRecord } from '@wordpress/core-data'; import { store as blockEditorStore } from '@wordpress/block-editor'; @@ -99,14 +99,20 @@ const RevertClassicTemplateButton = () => { ) } - The{ ' ' } - { template?.record?.title?.rendered ?? + { createInterpolateElement( __( - 'Classic Template', + `The template doesn’t allow for reordering or customizing blocks, but might work better with your extensions`, 'woo-gutenberg-products-block' - ) }{ ' ' } - doesn’t allow for reordering or customizing blocks, - but might work better with your extensions. + ), + { + strongText: ( + + { template?.record?.title + ?.rendered ?? '' } + + ), + } + ) }