Skip to content

Commit

Permalink
Account for pending status when evaluating post date floating (#13178)
Browse files Browse the repository at this point in the history
  • Loading branch information
earnjam authored and youknowriad committed Mar 6, 2019
1 parent fe36de2 commit 8fbfc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ export function isEditedPostDateFloating( state ) {
const date = getEditedPostAttribute( state, 'date' );
const modified = getEditedPostAttribute( state, 'modified' );
const status = getEditedPostAttribute( state, 'status' );
if ( status === 'draft' || status === 'auto-draft' ) {
if ( status === 'draft' || status === 'auto-draft' || status === 'pending' ) {
return date === modified;
}
return false;
Expand Down

0 comments on commit 8fbfc47

Please sign in to comment.