diff --git a/packages/edit-post/src/store/actions.js b/packages/edit-post/src/store/actions.js index 1dc0401baf21c..7ab0a965379be 100644 --- a/packages/edit-post/src/store/actions.js +++ b/packages/edit-post/src/store/actions.js @@ -481,7 +481,7 @@ export const initializeMetaBoxes = addAction( 'editor.savePost', 'core/edit-post/save-metaboxes', - async ( options ) => { + async ( post, options ) => { if ( ! options.isAutosave && select.hasMetaBoxes() ) { await dispatch.requestMetaBoxUpdates(); } diff --git a/packages/editor/src/store/actions.js b/packages/editor/src/store/actions.js index f8a18fc86e537..70be70c629339 100644 --- a/packages/editor/src/store/actions.js +++ b/packages/editor/src/store/actions.js @@ -278,7 +278,11 @@ export const savePost = if ( ! error ) { try { - await doActionAsync( 'editor.savePost', options ); + await doActionAsync( + 'editor.savePost', + { id: previousRecord.id }, + options + ); } catch ( err ) { error = err; }