[wp-trac] [WordPress Trac] #39896: Customizer: Allow users to Draft changes before Publishing
WordPress Trac
noreply at wordpress.org
Thu Sep 14 08:15:38 UTC 2017
#39896: Customizer: Allow users to Draft changes before Publishing
-------------------------+--------------------------
Reporter: melchoyce | Owner: westonruter
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.9
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: | Focuses: ui
-------------------------+--------------------------
Changes (by westonruter):
* owner: => westonruter
* status: new => accepted
Comment:
Initial progress on implementing autosave revision support in the
Customizer: https://github.com/xwp/wordpress-develop/pull/256
Screenshot of notice warning added can be seen in [attachment:autosave-
notice.png]. I just copied verbatim the string that gets shown on the edit
post screen.
Most of the remaining work is on the PHP side of things in the pull
request:
* Querying for a user's recent auto-draft changesets if they don't have an
existing one loaded.
* When the Customizer loads with a blank changeset UUID, grab the most
recent `draft` or `future` changeset, and if one exists, use its UUID
instead of generating a new one. This behavior would need to be able to be
disabled to allow Customize Snapshots to be able to have multiple
changesets living concurrently.
* Update admin-ajax endpoint to support the `autosave_revision` param.
* Delete the auto-draft changeset or a loaded changeset's autosave
revision when dismissing the above notice.
* Load changeset data from autosave revision when `autosaved` param is
provided.
* Delete an autosave revision when saving a changeset fully (as a draft,
future, or publish).
* And more I'm sure…
For more notes on implementation, see first half of conversation in thread
at: https://wordpress.slack.com/archives/C0381N237/p1504725296000135
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39896#comment:60>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list