diff --git a/blocks/api/factory.js b/blocks/api/factory.js index 60dfc8ce1bf7f3..f2cff80082af76 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 0bbb4837c69105..9932007d88f82b 100644 --- a/blocks/api/test/factory.js +++ b/blocks/api/test/factory.js @@ -624,7 +624,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 793ef1f932ca0e..357c9dd683aa82 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 } ,