Skip to content
Commit 4c991de4 authored by Daryl Koopersmith's avatar Daryl Koopersmith
Browse files

Theme Customizer: Migrate to an ajax-based solution for refreshing the preview...

Theme Customizer: Migrate to an ajax-based solution for refreshing the preview and saving. see #20507, #19910.

* Use ajax-based saving, add saving indicator.
* Use ajax-based refreshing instead of form targets.
* Instead of using hidden inputs with prefixed names to track the canonical data, use the values stored in wp.customize. Encode the values as JSON before sending to avoid bugs with ids that contain square brackets (PHP mangles POST values with nested brackets).
* Use wp.customize.Previewer solely for the purpose of previewing; move the postMessage connection with the parent frame and other unrelated code snippets into the 'ready' handler.


git-svn-id: https://core.svn.wordpress.org/trunk@20645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent db15d3a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment