]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/customize-base.js
WordPress 4.5
[autoinstalls/wordpress.git] / wp-includes / js / customize-base.js
index 79ba46430a53eaf840ed957d59edeb5eda33a8ad..b4b727951c77689f4c299ff793b64716cc4b1d4c 100644 (file)
@@ -704,8 +704,9 @@ window.wp = window.wp || {};
 
                        event = event.originalEvent;
 
-                       if ( ! this.targetWindow() )
+                       if ( ! this.targetWindow || ! this.targetWindow() ) {
                                return;
+                       }
 
                        // Check to make sure the origin is valid.
                        if ( this.origin() && event.origin !== this.origin() )