Make WordPress Core

Ticket #35866: 35866.0.diff

File 35866.0.diff, 501 bytes (added by westonruter, 9 years ago)
  • src/wp-includes/js/customize-base.js

    diff --git src/wp-includes/js/customize-base.js src/wp-includes/js/customize-base.js
    index 79ba464..b4b7279 100644
    window.wp = window.wp || {}; 
    704704
    705705                        event = event.originalEvent;
    706706
    707                         if ( ! this.targetWindow() )
     707                        if ( ! this.targetWindow || ! this.targetWindow() ) {
    708708                                return;
     709                        }
    709710
    710711                        // Check to make sure the origin is valid.
    711712                        if ( this.origin() && event.origin !== this.origin() )