mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-03 22:27:04 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user