Skip to content

Commit

Permalink
Fix title references in the Embed block
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed May 1, 2021
1 parent 26045fd commit 7811af5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/block-library/src/embed/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7811af5

Please sign in to comment.