From b5e63413313fbe0831ed89405b26789e3e5c62c8 Mon Sep 17 00:00:00 2001 From: Dhananjay Kuber Date: Tue, 7 Jan 2025 23:50:30 +0530 Subject: [PATCH] fix: Add title attribute to post save action --- packages/editor/src/store/actions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/editor/src/store/actions.js b/packages/editor/src/store/actions.js index 6a628512f62bf7..fa9e31a4546675 100644 --- a/packages/editor/src/store/actions.js +++ b/packages/editor/src/store/actions.js @@ -204,6 +204,7 @@ export const savePost = } const content = select.getEditedPostContent(); + const title = select.getEditedPostAttribute( 'title' ); if ( ! options.isAutosave ) { dispatch.editPost( { content }, { undoIgnore: true } ); @@ -212,6 +213,7 @@ export const savePost = const previousRecord = select.getCurrentPost(); let edits = { id: previousRecord.id, + title, ...registry .select( coreStore ) .getEntityRecordNonTransientEdits(