[wp-trac] [WordPress Trac] #30937: Add Customizer transactions
WordPress Trac
noreply at wordpress.org
Thu Jan 28 21:38:36 UTC 2016
#30937: Add Customizer transactions
-----------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: feature request | Status: assigned
Priority: normal | Milestone: 4.5
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
-----------------------------+--------------------------
Comment (by westonruter):
@NateWr yes, any requests made in the context of a theme switch preview
would need to include the `theme` as a parameter.
I talked with @rmccue about the `PATCH` method and that it isn't supported
currently. This would really be needed if we were to use the REST API to
amend changes (an update to a single setting) to a transaction post. Using
a `PUT` with sparse fields (e.g. just including the one changed setting)
would be ambiguous since a transaction would have any number of settings:
it wouldn't be known if the intention was to override the resource to be
that single setting or if the one supplied setting should just override
the one field if already present in the transaction.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30937#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list