You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: