WP Manifestindependent plugin directory
manifest / content / wp-feature-future-revisions

Future Revisions

Feature as a plugin proposal: future revisions and public revisions

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/pewresearch/wp-feature-future-revisions/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPress feature plugin for public historical revisions and future-revision fork/merge.

Pew Research Center working copy: pewresearch/wp-feature-future-revisions. Plugin URI still points at the intended WordPress.org home.

Also vendored in prc-platform at plugins/wp-feature-future-revisions/.

Features

Two independent post_type_supports keys:

  • public-revisions — flag a revision public and serve it at /post-slug/revision/{id}/
  • future-revisions — fork a published post into a draft and merge it back on publish (keeps the original post_date)

post and page get both. Other types opt in with add_post_type_support().

Development

npm install
npm run build

PHPUnit lives in tests/phpunit/ and runs against wordpress-tests-lib / @wordpress/env (see .wp-env.json).

package-lock.json is not in this repo yet (payload too large for the publish path). Run npm install from this folder to generate one locally.