Skip to content

Commit

Permalink
Only consider a post saveable if it is dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Sep 3, 2018
1 parent 847c699 commit 40cb6ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ export function isEditedPostSaveable( state ) {
// See: https://github.com/WordPress/gutenberg/pull/4184

return (
isEditedPostDirty( state ) ||
!! getEditedPostAttribute( state, 'title' ) ||
!! getEditedPostAttribute( state, 'excerpt' ) ||
! isEditedPostEmpty( state )
Expand Down

0 comments on commit 40cb6ab

Please sign in to comment.