[wp-trac] [WordPress Trac] #31088: Post revisions in the customizer
WordPress Trac
noreply at wordpress.org
Thu Jan 22 06:42:11 UTC 2015
#31088: Post revisions in the customizer
-----------------------------+------------------------------
Reporter: adamsilverstein | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
-----------------------------+------------------------------
Comment (by westonruter):
Ah, so the scope for this issue is specifically for viewing *post*
revisions in the Customizer. So #31089 is not a duplicate, since it is
about storing revisions of anything registered as a Customizer setting.
If posts were registered as a Customizer settings with a custom type (e.g.
`post`), and if we had revisions of settings in #31089, then we'd
potentially introduce a case where there would be two copies of revisions:
one in a post revision, and another in a Customizer revision
(transaction). So if we did this, we'd probably want the Customizer
setting to be a shallow reference to the full data stored in the post
revision. For instance, there could be a Customizer setting of type
"post_revision" whose value is the post ID for the revision to apply. Then
when the Customizer saves, and a Customizer revision/transaction (#30937)
is made, the only reference to the post revision is the one ID, not the
full post object and postmeta.
By the way, the [https://wordpress.org/plugins/customize-posts/ Customize
Posts] plugin demonstrates how to register posts as a custom Customizer
setting type. The previewing mechanism there could be used to apply a
previous post revision to the preview.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31088#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list