From 7811af57bd27683327f9ec387c35ffb6e339dc72 Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Mon, 26 Apr 2021 10:39:52 +0200 Subject: [PATCH] Fix title references in the Embed block --- packages/block-library/src/embed/edit.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/embed/edit.js b/packages/block-library/src/embed/edit.js index 75f0cee9a91285..09b28b72338b5a 100644 --- a/packages/block-library/src/embed/edit.js +++ b/packages/block-library/src/embed/edit.js @@ -8,8 +8,8 @@ import { getAttributesFromPreview, getEmbedInfoByProvider, } from './util'; -import { settings } from './index'; import EmbedControls from './embed-controls'; +import { embedContentIcon } from './icons'; import EmbedLoading from './embed-loading'; import EmbedPlaceholder from './embed-placeholder'; import EmbedPreview from './embed-preview'; @@ -22,7 +22,7 @@ import classnames from 'classnames'; /** * WordPress dependencies */ -import { __, sprintf } from '@wordpress/i18n'; +import { __, _x, sprintf } from '@wordpress/i18n'; import { useState, useEffect } from '@wordpress/element'; import { useDispatch, useSelect } from '@wordpress/data'; import { useBlockProps } from '@wordpress/block-editor'; @@ -55,8 +55,8 @@ const EmbedEdit = ( props ) => { } = props; const defaultEmbedInfo = { - title: settings.title, - icon: settings.icon, + title: _x( 'Embed', 'block title' ), + icon: embedContentIcon, }; const { icon, title } = getEmbedInfoByProvider( providerNameSlug ) || defaultEmbedInfo;