PublishPress-Planner
PublishPress-Planner copied to clipboard
User can't change the Status of a post if the current status was deleted

Even for admins, there is no select box for changing the status. It is there, but hidden. It seems to be related to lack of permissions. PublishPress permissions is not installed on the site.
Related to #311. I just realised that the client has deleted the status Pending, which breaks the plugin when we have posts with that status.
On this particular case the post is set to Pending, but that status was removed from PublishPress. Which makes the plugin understand the user can't edit the post. Fixing #311 will prevent this to happen again.

Restoring the Pending (slug = pending) status fixed the issue.
Maybe we should improve the JS code above to support changing the post status on situations like that?
Important to note that this didn't happened in the Quick Edit panel. So maybe that panel is not checking capabilities to see which user can or can't change the current status?