Skip to content

Commit

Permalink
Remove extraneous template part title in replace control (#55603)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 authored Nov 13, 2023
1 parent 901dc7d commit f803a8f
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions packages/block-library/src/template-part/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import { useSelect } from '@wordpress/data';
import {
BlockSettingsMenuControls,
BlockTitle,
useBlockProps,
Warning,
store as blockEditorStore,
Expand All @@ -14,7 +13,7 @@ import {
import { Spinner, Modal, MenuItem } from '@wordpress/components';
import { __, sprintf } from '@wordpress/i18n';
import { store as coreStore } from '@wordpress/core-data';
import { useState, createInterpolateElement } from '@wordpress/element';
import { useState } from '@wordpress/element';

/**
* Internal dependencies
Expand Down Expand Up @@ -174,17 +173,7 @@ export default function TemplatePartEdit( {
}
aria-haspopup="dialog"
>
{ createInterpolateElement(
__( 'Replace <BlockTitle />' ),
{
BlockTitle: (
<BlockTitle
clientId={ clientId }
maximumLength={ 25 }
/>
),
}
) }
{ __( 'Replace' ) }
</MenuItem>
);
} }
Expand Down

0 comments on commit f803a8f

Please sign in to comment.