From 5f9d573bf22bd832b79f3fb99faf040f0c689fd5 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 69ab10ebe5a9d..7d20a6c5fab17 100644 --- a/packages/edit-post/src/store/actions.js +++ b/packages/edit-post/src/store/actions.js @@ -566,7 +566,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 ) => {