Skip to content

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

@davisshaver

Description

@davisshaver

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions