diff --git a/blocks/api/factory.js b/blocks/api/factory.js index 0a287a68e0925..25fd4132b03ed 100644 --- a/blocks/api/factory.js +++ b/blocks/api/factory.js @@ -224,7 +224,7 @@ export function createReusableBlock( type, attributes ) { return { id: +uniqueId(), // Temorary id replaced when the block is saved server side isTemporary: true, - name: __( 'Untitled block' ), + title: __( 'Untitled block' ), type, attributes, }; diff --git a/blocks/api/test/factory.js b/blocks/api/test/factory.js index d90fd18b47c79..eccf6509e4ddd 100644 --- a/blocks/api/test/factory.js +++ b/blocks/api/test/factory.js @@ -619,7 +619,7 @@ describe( 'block factory', () => { expect( createReusableBlock( type, attributes ) ).toMatchObject( { id: expect.any( Number ), - name: 'Untitled block', + title: 'Untitled block', type, attributes, } ); diff --git a/blocks/library/block/edit-panel/index.js b/blocks/library/block/edit-panel/index.js index 793ef1f932ca0..357c9dd683aa8 100644 --- a/blocks/library/block/edit-panel/index.js +++ b/blocks/library/block/edit-panel/index.js @@ -10,13 +10,13 @@ import { __ } from '@wordpress/i18n'; import './style.scss'; function ReusableBlockEditPanel( props ) { - const { isEditing, name, isSaving, onEdit, onDetach, onChangeName, onSave, onCancel } = props; + const { isEditing, title, isSaving, onEdit, onDetach, onChangeTitle, onSave, onCancel } = props; return (
{ ! isEditing && ! isSaving && [ - { name } + { title } ,