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

Custom post statuses and Publish flow #66199

Open
2 tasks done
afercia opened this issue Oct 17, 2024 · 0 comments
Open
2 tasks done

Custom post statuses and Publish flow #66199

afercia opened this issue Oct 17, 2024 · 0 comments
Labels
[Package] Edit Post /packages/edit-post [Type] Bug An existing feature does not function as intended

Comments

@afercia
Copy link
Contributor

afercia commented Oct 17, 2024

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
@afercia afercia added [Package] Edit Post /packages/edit-post [Type] Bug An existing feature does not function as intended labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Edit Post /packages/edit-post [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

1 participant