From c95501abaec48de2d57dd4d0e737d9d4b2abe66c Mon Sep 17 00:00:00 2001 From: epiqueras Date: Mon, 16 Sep 2019 11:03:49 -0400 Subject: [PATCH] Editor: Ignore publish status changes in undo history. --- packages/editor/src/components/post-publish-button/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/post-publish-button/index.js b/packages/editor/src/components/post-publish-button/index.js index 90b689ff5a357..1513dfbfbb414 100644 --- a/packages/editor/src/components/post-publish-button/index.js +++ b/packages/editor/src/components/post-publish-button/index.js @@ -155,7 +155,7 @@ export default compose( [ withDispatch( ( dispatch ) => { const { editPost, savePost } = dispatch( 'core/editor' ); return { - onStatusChange: ( status ) => editPost( { status } ), + onStatusChange: ( status ) => editPost( { status }, { undoIgnore: true } ), onSave: savePost, }; } ),