[wp-trac] [WordPress Trac] #42191: Customize: Selectively merge settings from autosave revisions

WordPress Trac noreply at wordpress.org
Thu Oct 12 04:09:20 UTC 2017


#42191: Customize: Selectively merge settings from autosave revisions
-------------------------+-----------------------------
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Customize    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------------
Description changed by westonruter:

Old description:

> In follow-up on #42024, an autosave revision is created as part of
> changeset locking. When a user returns to the customizer after a lock has
> been lifted, they will be prompted to restore their revision. The
> restoration logic should only load settings from the changeset which are
> older than the settings in the `customize_changeset` post, or the
> settings for which there is no existing setting in the changeset. This
> merge will more intelligently ensure that a user's restored autosave
> revision won't override the changes another user saved. There may be some
> cases, however, where selectively restoring parts of an autosave will
> have unexpected results (e.g. opting to include a newly-created widget,
> but not accepting the change to the sidebar), so more investigation will
> be needed.
>
> The problem of conflict resolution in the Customizer is a large problem
> which is also being worked on in the [Customize Snapshots
> https://github.com/xwp/wp-customize-snapshots] plugin.

New description:

 In follow-up on #42024, an autosave revision is created as part of
 changeset locking. When a user returns to the customizer after a lock has
 been lifted, they will be prompted to restore their revision. The
 restoration logic should only load settings from the changeset which are
 older than the settings in the `customize_changeset` post (see new setting
 prop `date_modified_gmt`), or the settings for which there is no existing
 setting in the changeset. This merge will more intelligently ensure that a
 user's restored autosave revision won't override the changes another user
 saved. There may be some cases, however, where selectively restoring parts
 of an autosave will have unexpected results (e.g. opting to include a
 newly-created widget, but not accepting the change to the sidebar), so
 more investigation will be needed.

 The problem of conflict resolution in the Customizer is a large problem
 which is also being worked on in the [Customize Snapshots
 https://github.com/xwp/wp-customize-snapshots] plugin.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42191#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list