Opened 7 years ago
Closed 7 years ago
#42162 closed defect (bug) (fixed)
Customize: Ajax requests in preview do not have pending customized state applied to them
Reported by: | westonruter | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.8.2 |
Component: | Customize | Keywords: | has-patch |
Focuses: | Cc: |
Description
In [40704] we added a nonce for each Customizer preview request as a signal for whether or not the customized
POST data should be read from. If it is not present or the nonce is invalid, then only the data already written into the changeset will be applied to the response, with the values in customized
that are pending to be written into the changeset ignored entirely. Unfortunately, we missed also applying the same change customize-preview.js
meaning that Ajax requests in the preview currently do not get this the changeset-pending customized state applied to it.
Originally reported in https://wordpress.stackexchange.com/questions/282139/how-to-make-get-theme-mod-work-with-ajax-in-the-customizer-preview
In 41804: