Make WordPress Core

Changes between Version 15 and Version 17 of Ticket #31089


Ignore:
Timestamp:
12/10/2016 11:57:43 PM (9 years ago)
Author:
westonruter
Comment:

Also, once a changeset has transitioned from auto-draft to another non-transient status, such as draft, pending, or future, the “are you sure” beforeunload dialog should not be shown, as is being implemented in the Customize Snapshots plugin. (See #39229.)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31089

    • Property Summary changed from Add revisions of settings to the Customizer to Customize: Add revisions and statuses for changesets
  • Ticket #31089 – Description

    v15 v17  
    1 In #30937 the concept of a “Customizer Transaction” is introduced, wherein each Customizer session gets a transaction containing the settings that are modified and eventually saved (or not). The `wp_transaction` is a custom post type with the settings JSON stored in the `post_content`. Every time the Customizer is accessed, a new `wp_transaction` post is created with `post_status=draft` and then when saving it becomes `post_status=publish`. As such, this automatically becomes a revision history for all saved changes to the Customizer.
     1In #30937 the concept of a “Customizer Transaction” is introduced, wherein each Customizer session gets a changeset containing the settings that are modified and eventually saved (or not). The `customize_changeset` is a custom post type with the settings JSON stored in the `post_content`. Every time the Customizer is accessed, a new `customize_changeset` post is created with `post_status=draft` and then when saving it becomes `post_status=publish`. As such, this automatically becomes a revision history for all saved changes to the Customizer.
    22
    3 With the work on Transactions, however, there is no UI for accessing these revisions. There is no way to see previous revisions, to revert a revision, to recall a revision to continue changes.
     3With the work on changesets, however, there is no UI for accessing these revisions. There is no way to see previous revisions, to revert a revision, to recall a revision to continue changes. Nevertheless, UIs for revisions and changeset status changes are being prototyped in the [https://github.com/xwp/wp-customize-snapshots Customize Snapshots] plugin.
    44
    5 I did do some work on a [https://wordpress.org/plugins/settings-revisions/ Settings Revisions] plugin for a potential UI, where a new Customizer section is added to load a previous revision and to provide the “commit message” for the new one  (see [https://wordpress.org/plugins/settings-revisions/screenshots/ plugin screenshots]). However, this plugin was written before transactions.
     5I did do some work on a [https://wordpress.org/plugins/settings-revisions/ Settings Revisions] plugin for a potential UI, where a new Customizer section is added to load a previous revision and to provide the “commit message” for the new one  (see [https://wordpress.org/plugins/settings-revisions/screenshots/ plugin screenshots]). However, this plugin was written before changesets.
    66
    77See also: