From 7376e295061ff49e7cbcc685b063797821fd37bc Mon Sep 17 00:00:00 2001 From: Jarda Snajdr Date: Fri, 21 Oct 2022 14:16:14 +0200 Subject: [PATCH] Rename the action to editor.__unstableSavePost --- packages/edit-post/src/store/actions.js | 2 +- packages/editor/src/store/actions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/edit-post/src/store/actions.js b/packages/edit-post/src/store/actions.js index 69226a2aa6c2c..0ee1efb62b02e 100644 --- a/packages/edit-post/src/store/actions.js +++ b/packages/edit-post/src/store/actions.js @@ -570,7 +570,7 @@ export const initializeMetaBoxes = // Save metaboxes on save completion, except for autosaves. addFilter( - 'editor.SavePost', + 'editor.__unstableSavePost', 'core/edit-post/save-metaboxes', ( previous, options ) => previous.then( () => { diff --git a/packages/editor/src/store/actions.js b/packages/editor/src/store/actions.js index b040229d46cff..ece8d62f689a5 100644 --- a/packages/editor/src/store/actions.js +++ b/packages/editor/src/store/actions.js @@ -189,7 +189,7 @@ export const savePost = if ( ! error ) { await applyFilters( - 'editor.SavePost', + 'editor.__unstableSavePost', Promise.resolve(), options ).catch( ( err ) => {