Skip to content

fix(academy): show the Revision Needs Work column on the content board - #1077

Merged
Genyus merged 1 commit into
developfrom
fix/content-board-revision-needs-work
Oct 27, 2026
Merged

Genyus merged 1 commit into
developfrom
fix/content-board-revision-needs-work

Conversation

@Genyus

@Genyus Genyus commented Oct 27, 2026

Copy link
Copy Markdown
Member

Revisions set to Revision Needs Work never appear on the PublishPress Content Board, for any user. With revisions shown, the column is missing. Filtering by that status leaves every visible column empty.

Cause

Statuses Pro's default definition of revision-needs-work sets alternate => true (publishpress-statuses-pro/includes-pro/Revisions.php). When Statuses classifies statuses by position, it can set that flag but only ever clears it for Draft. So the status stays alternate even when it sits in the main revision workflow, as it does on production. Moving it on the Statuses screen doesn't change this.

The Content Board skips alternate statuses when it builds its columns (content-board.php, if (!empty($post_status_object->alternate)) continue;).

Fix

A new mu-plugin, cbf-content-board-revision-needs-work.php, hooks publishpress_calendar_post_statuses. On the Content Board page only, it replaces the revision-needs-work status with a copy that has alternate cleared. Statuses caches the original objects and uses them for the workflow, so the originals stay unchanged and the workflow isn't affected.

Testing

Tested locally against a copy of the production database, on the Content Board with revisions shown:

  • With the mu-plugin: the Revision Needs Work column appears with its one revision, for an administrator and for a Reviewer.
  • Without it: the column is missing.

phpcs passes.

Statuses Pro defines revision-needs-work as an alternate status and never clears the flag, whatever its position in the revision workflow. The Content Board skips alternate statuses, so revisions in that status never appeared. Clear the flag on copies of the status objects passed to the board.
@Genyus
Genyus merged commit 15c2067 into develop Oct 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant