PublishPress-Planner
PublishPress-Planner copied to clipboard
Disable status drag-and-drop in the admin if Permissions Pro's Status Control module is enabled
We received a report about a possible conflict between PublishPress and Permissions Pro.
When Permissions is installed, PublishPress' statuses drag-and-drop feature do not work. After refreshing the page, the statuses order is reset. This is not a conflict really, because Permissions was designed to override the statuses ordering from PublishPress. This is done using the filter get_terms
:
https://github.com/publishpress/PublishPress-Permissions-Pro/blob/master/modules/presspermit-status-control/classes/Permissions/StatusesHooks.php#L36
In order to avoid confusion, and give the impression PublishPress is broken, we should probably disable the drag-and-drop feature when the module Status Control is enabled on Permissions.
Then add a new item to the Additional Status Settings panel (which comes from Permissions):