Future Revisions
Feature as a plugin proposal: future revisions and public revisions
by WordPress Contributors · github.com/pewresearch/wp-feature-future-revisions · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/pewresearch/wp-feature-future-revisions/archive/refs/heads/main.zipReadme
Future Revisions
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 originalpost_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.