這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Drafts of Post Revisions

外掛說明

Create drafts of WordPress posts/pages/CPTs even after they’ve been published. And when you’re ready, merge the changes back into the original published post.

Features

  • Create multiple drafts of already published posts
  • Merge the changes back into the published post when you’re ready
  • Uses the published posts’s original post type, so metas, taxonomies, etc all are available in admin screens and can even be modified in the draft and merged back into the original post
  • Perform a post diff similar to WP’s default revision.php?action=diff with added ability to compare changes in post meta and taxonomies
  • See a notice when the original post has been updated ahead of a draft
  • Preview drafts in the post/page/CPT’s natural template
  • Since drafts all carry the same custom post status, they are organized in the admin’s edit.php with their own status filter (see screenshot-4)

This plugin requires javascript.

How Does it Work?

Go to a post’s edit screen and click on the “Save a Draft” button in the Drafts of Revisions postbox (make sure you’ve enabled the post type first). The post’s core data, taxonomies, and meta data are all copied into a new post – the draft – as a child of the original post. The draft has a custom post status; it will never show up in any queries for posts. You can create as many drafts as you like.

You can edit a draft’s post content, taxonomies, and meta data as you like and save progress with the native WP “Save Draft” button. You can also preview the draft and compare changes against the parent at any time (even comparing changes in taxonomies and meta data).

When you’re ready to update the parent post, click the Publish button from the draft’s edit page. All post data, taxonomies, and meta data are merged back into the parent post and the draft post is deleted.

螢幕擷圖

  • Editing a draft
  • Viewing the original page
  • Comparing changes
  • Draft revisions organized in edit.php under their own custom post status

安裝方式

See Installing Plugins.

  1. Download the zip from here or from Github and drop it into your site’s wp-content/plugins directory, or go to your site > Plugins > Add New > search for ‘Drafts of Post Revisions’
  2. Navigate to your site’s Admin > Plugins section (wp-admin/plugins.php) and activate the plugin
  3. Go to Settings > Drafts of Revisions to set up the permitted post types
  4. Go to any post edit screen and look for the Drafts of Revisions postbox in the upper right above the Publish postbox. Click on “Save a Draft” to create a new draft of a published post

使用者評論

2016 年 9 月 3 日
I was a bit worried when I saw that this plugin has not been updated in two years, but it works well with WP 4.4.2. User interface and workflow is really good. Code is well documented. Great plugin, Thanks
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Drafts of Post Revisions〉的開發相關工作。

參與者

將〈Drafts of Post Revisions〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.8.1

  • Fix diff page with new wp 3.8 html
  • Rename Mustache.php to Mustachio.php to avoid weird conflicts with other plugins using Mustache

0.8

  • updated to be compatible with WP 3.8

0.7.3

  • bugfix – make sure compare changes link works when WP is installed in a sub-dir
  • bugfix – call-time pass-by-reference removed in php 5.4
  • made one admin notice slightly less ambiguous

0.7.2

  • bugfix – make sure serialized post metas are unserialized/serialized properly

0.7.1

  • bugfix – make sure post_name is unique

0.7

  • initial release