Skip to content

Commit

Permalink
Editor: Ignore publish status changes in undo history.
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Sep 16, 2019
1 parent f94e0a8 commit c95501a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
} ),
Expand Down

0 comments on commit c95501a

Please sign in to comment.