[wp-trac] [WordPress Trac] #42163: Customize: Add support for previewing requests made via the Fetch API
WordPress Trac
noreply at wordpress.org
Mon Oct 9 21:35:19 UTC 2017
#42163: Customize: Add support for previewing requests made via the Fetch API
--------------------------+-------------------
Reporter: westonruter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9.1
Component: Customize | Version:
Severity: normal | Keywords:
Focuses: javascript |
--------------------------+-------------------
The Customizer preview supports applying the customized state to Ajax
requests via `jQuery.prefilterAjax`. However, if a frontend is not using
jQuery but rather the Fetch API then the customized state will not be
injected into the request in order to have the customized state applied to
the response. In the same way that `customize-preview.js` is wrapping
`history.replaceState()` and `history.pushState()` to inject the
customized state, we should also wrap `fetch()` to do the same. We may
also want to do this for `XMLHttpRequest` as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42163>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list