Opened 7 weeks ago
#61914 new defect (bug)
prepublish modal not appearing when we select custom post status
Reported by: | yogeshdalavi | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | critical | Version: | 6.6 |
Component: | Posts, Post Types | Keywords: | needs-patch |
Focuses: | administration | Cc: |
Description
I'm facing a problem with the pre-publish modal's behavior when a custom post status is selected in WordPress 6.6.
I have tested the pre-publish modal 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 modal 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 modal 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
In summary, the issue is:
Actual Behavior in WP 6.6: The pre-publish modal does not appear on the initial "Publish" button click after selecting a custom post status.
Expected Behavior: The pre-publish modal should appear on the initial "Publish" button click, even after selecting a custom post status.
Pre-publish Modal Behavior in WP 6.4 and WP 6.6 with Custom Post Status