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

Clone & Replace

外掛說明

WordPress has a wonderful editing model with its “draft workflow”, where writers can save unpublished drafts, preview posts, submit drafts for review from a superior, and even schedule a post’s publication. This is all that most writers and teams ever needed for a blog. WordPress has extended beyond blogs, and has grown to be the preferred platform for any person or team writing for the web. While WordPress has evolved, its editing model has not, and this editing model is limited. Once a post is published, edits cannot follow the same workflow. That’s where this plugin comes in. This plugin has two powerful features, the ability to clone posts and the ability to replace posts with another, which combined, allow writers to leverage core’s “draft workflow” for published posts.

Features

  • Create clones of existing posts. The replicas are created as drafts, and have all the same data (including terms and post meta) as the original post. The only things not cloned are child posts (which include revisions, attachments, and other posts)
  • Replace one post with another. The replaced post becomes a revision of itself, the replacing post is essentially deleted, and you’re left with the replacing post’s data with the post ID and slug of the replaced post.

Combined, these features give writers a pseudo-“fork and merge” model. Published posts can be cloned, the clones edited as any other draft can be, then the originals replaced with the clones.

Individually, these features are equally as useful. You don’t need to use the “fork and merge” model to take advantage of this plugin.

安裝方式

  1. Upload clone-replace to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

If I clone post A into post B, then make edits to post A, then replace it with post B, are those edits retained and merged into the final result?

No, those edits are overridden. For a more typical fork & merge writing model, check out Post Forking

Can I schedule a post to be replaced?

Absolutely! Post replacement happens when the post is published, so you can replace a post in the same ways you can publish any other post.

The “Replace” fields don’t appear on published posts. What gives?

This is done as a fail-safe. At this time, replacement happens on publish. Remember that the replacing post will be deleted after it is merged into the to-be-replaced post. If your replacing post is published, then you will be deleting a published post, leaving a 404 on your site. If you want to replace a post with a published post, you must first unpublish it.

What will/won’t be cloned/replaced?

Everything about a post will be cloned except child posts (which includes attachments and revisions) and some core post meta, like _edit_lock and _edit_last (though you can alter the post meta that’s skipped with a filter)

Everything about a post will be replaced except its Post ID, Slug, GUID, Post Status, and child posts (including attachments and revisions).

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Clone & Replace〉的開發相關工作。

參與者

將 Clone & Replace 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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