Theme Customizer: Add cross-domain handling for when the admin and front-end are different origins. Handles both ajax and postMessage calls. props rboren, mdawaffe, nacin. see #20507, #19910.

git-svn-id: https://develop.svn.wordpress.org/trunk@20741 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-05-08 20:13:34 +00:00
parent 6f90e8abd6
commit 320916cc53
3 changed files with 31 additions and 10 deletions

View File

@@ -37,7 +37,7 @@
var preview, body;
preview = new api.Preview( api.settings.parent );
preview = new api.Preview( window.location.href );
$.each( api.settings.values, function( id, value ) {
api.set( id, value );