Skip to content

Permanently fix the pending status visibility overriding

IMC Nantes requested to merge roigadev-fix-pending-status-override into roigadev

Creating it though the IMCPress\Status facility was printing the option twice in the admin publish box status selection for some reasons. Using WP builtin register_post_status directly seems to fix it. It's also moved in IMCPress\Status::construct to unbloat IMCPress.

So with this commit, locally it fixes the doubling of the pending option in the status selection.

I couldn't check if it still fixed its primary existence reason too: enabling the display of single pending post content on the frontend for non-logged visitors. Does it work for you?

If it does, feel free to merge it (with --no-ff) in your roigadev branch 😄

Merge request reports