Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request for Feedback] Ideas for addressing isEditedPostDateFloating to support custom statuses #623

Open
davisshaver opened this issue Nov 15, 2020 · 0 comments

Comments

@davisshaver
Copy link

davisshaver commented Nov 15, 2020

Expected/Desired Behavior

Floating post dates should work on posts with custom post statuses.

Actual Behavior

Currently the block editor does not support floating post dates on posts with custom post statuses.

Steps to Reproduce the Problem

  1. Create a new post
  2. With or without Edit Flow enabled, the following JS command recreates the issue: wp.data.dispatch('core/editor').editPost({ status: 'pitch'});

The issue can also be recreated in a fresh WP/EditFlow installation by creating a new post. You should see the publish time is set immediately on opening the block editor.

Additional notes

The logic is contained here in isEditedPostDateFloating: https://github.com/WordPress/gutenberg/blob/master/packages/editor/src/store/selectors.js#L735-L760

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants