Skip to content

Custom post statuses and Publish flow #66199

Open

Description

@afercia

Description

This was reported on Trac but it seems to me it surfaces a broader issue.
WordPress allows to register custom post statuses via the register_post_status() function. There are plugins that add custom post statues to allow for additional editorial flows. Historically, the WordPress implementation of custom post statues has been partial but anyways the block editor should take into account the existance of custom post statues.
Really not my area of experties so I'd leave this to contributors who are more familiar than me with custom post statues and the editor publish flow. Just a note that the changed behaevior reported on the original Trac ticket may have been introduced with the changes from #60456.

Original trac ticket

See https://core.trac.wordpress.org/ticket/61914

Summary:
prepublish panel not appearing when we select custom post status

Reporter:
yogeshdalavi

Description:
I'm facing a problem with the pre-publish panel's behavior when a custom post status is selected in WordPress 6.6.

I have tested the pre-publish panel behavior on two different WordPress versions using the Playground(https://wordpress.org/playground/). In WP 6.4, when creating a new post and selecting a custom post status (e.g., "Ready for Publish"), the pre-publish panel appears as expected. However, in WP 6.6, following the same steps, the custom status is set in the backend, but WordPress core treats it as a draft, and the post is not published. At this point, I have to click the "Publish" button again for the pre-publish panel to appear. This change has altered the previous post-publish behavior.

Please refer to the screenshots for more details:

WordPress 6.4: https://we.tl/t-ho4nMzZg7S
WordPress 6.6: https://we.tl/t-pZ0yXxtUaB
(Note: these links appear to be expired)

In summary, the issue is:
Actual Behavior in WP 6.6: The pre-publish panel does not appear on the initial "Publish" button click after selecting a custom post status.

Expected Behavior: The pre-publish panel should appear on the initial "Publish" button click, even after selecting a custom post status.

Note

One of the plugins that add custom post statues that can be used for testing is LH Archived Post Status.

Step-by-step reproduction instructions

Screenshots, screen recording, code snippet

Videos from the original ticket:

Behavior in WordPress 6.4

WordPress+6.4.webm

Behavior in WordPress 6.6

WordPress+6.6.webm

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Activity

  1. added
    [Package] Edit Post
    [Type] Bug
    on Oct 17, 2024
  2. Mamaduka commented on May 1, 2025

    @Mamaduka
    Member

    Related #3144.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Package] Edit Post[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions