WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 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:
PR Number:

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

Attachments (1)

42162.0.diff (612 bytes) - added by westonruter 2 years ago.

Download all attachments as: .zip

Change History (4)

@westonruter
2 years ago

#1 @westonruter
2 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.9
  • Owner set to westonruter
  • Status changed from new to accepted

#2 @westonruter
2 years ago

In 41804:

Customize: Ensure customized changes pending to be written into changeset are successfully injected into Ajax requests in preview.

Amends [40704].
See #42162.

#3 @westonruter
2 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed
  • Version set to 4.8.2
Note: See TracTickets for help on using tickets.