mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Customize: Prevent consecutive refresh
requests from preview from causing JS error.
Fixes "Uncaught TypeError: this.targetWindow is not a function". See #27355. Fixes #35866. Built from https://develop.svn.wordpress.org/trunk@36583 git-svn-id: http://core.svn.wordpress.org/trunk@36550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
77dbab1e1b
commit
34010353cc
@ -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() )
|
||||
|
2
wp-includes/js/customize-base.min.js
vendored
2
wp-includes/js/customize-base.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36582';
|
||||
$wp_version = '4.5-alpha-36583';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user