Currently if the publish post status is unregistered this function also unregisters draft and pending
I think this logic should be reviewed. There are many use cases where publish may not be desired but draft are pending are
eg I created a “sent” status for a letter custom post type. I did not want unauthenticates users to access the cpt so I unregistered publish. But I did want the workflow associated with draft and pending statuses. I forked the code to get it to work but that is not ideal.
I suggest removing the current logic and if people don’t want draft and pending they can explicitly unregister them. Is that possible?
if that is not possible due to backwards compatibility then can you please add a filter so this logic can be bypassed?
Currently if the publish post status is unregistered this function also unregisters draft and pending
I think this logic should be reviewed. There are many use cases where publish may not be desired but draft are pending are
eg I created a “sent” status for a letter custom post type. I did not want unauthenticates users to access the cpt so I unregistered publish. But I did want the workflow associated with draft and pending statuses. I forked the code to get it to work but that is not ideal.
I suggest removing the current logic and if people don’t want draft and pending they can explicitly unregister them. Is that possible?
if that is not possible due to backwards compatibility then can you please add a filter so this logic can be bypassed?