Theme Customizer: Check for CORS support when the preview and admin urls are cross-domain. Add a fallback to the customize control frame, and check support there as well. see #20582, #19910.

git-svn-id: https://develop.svn.wordpress.org/trunk@20886 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-05-24 21:13:21 +00:00
parent 635c3a83e9
commit acdce48f5c
5 changed files with 68 additions and 27 deletions
+2
View File
@@ -474,6 +474,8 @@ if ( typeof wp === 'undefined' )
* Messenger for postMessage.
* ===================================================================== */
$.support.postMessage = !! window.postMessage;
api.Messenger = api.Class.extend({
add: function( key, initial, options ) {
return this[ key ] = new api.Value( initial, options );