[wp-trac] [WordPress Trac] #23314: Allow published posts to be revised without being updated immediately
WordPress Trac
noreply at wordpress.org
Fri Jan 29 18:37:31 UTC 2016
#23314: Allow published posts to be revised without being updated immediately
-------------------------------------------------+-------------------------
Reporter: kovshenin | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future
Component: Revisions | Release
Severity: normal | Version:
Keywords: editorial-flow needs-screenshots | Resolution:
has-patch | Focuses:
-------------------------------------------------+-------------------------
Comment (by Robert Hickman):
To further describe the above image, content_revisions.png, this is how I
implemented this functionality in the UI of my own CMS. As a point of
referance for how it could be implemented in WP.
All revisions of a content item are first class citizens. When a new
revision is created, the previously published revision retains it's
published flag and the latest can be changed without changing the previous
content items at all. Previous content items can be viewed by clicking on
them in the sidebar, which simply displays there content in the edit form.
When the updated content is published it simply clears the 'published'
flag of the previously published item, and sets this flag to true for the
item which was chosen to be published. Because of this arrangement, it is
also easy to republish a previous version, should it be required.
The data schema of this system is quite different from what wordpress
uses. As mentioned all 'revisions' are first class, it does not
distinguish between 'post'/'page' and 'revision' like wordpress does. As a
side effect of this the DB ID field of the published item will change if a
different version is published. Doing such would break things under
wordpress's schema if a plug-in referenced the ID rather than the item
marked as published.
This functionality could be implemented on the data schema that Wordpress
uses if the 'published' revision where copied over the data in the
'post'/'page' etc record.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23314#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list