diff --git package-lock.json package-lock.json
index 477488d18a..68dc453454 100644
|
|
|
6502 | 6502 | } |
6503 | 6503 | }, |
6504 | 6504 | "jquery": { |
6505 | | "version": "1.12.4", |
6506 | | "resolved": "https://registry.npmjs.org/jquery/-/jquery-1.12.4.tgz", |
6507 | | "integrity": "sha1-AeHfuikP5z3rp3zurLD5ui/sngw=" |
| 6505 | "version": "3.3.1", |
| 6506 | "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.3.1.tgz", |
| 6507 | "integrity": "sha512-Ubldcmxp5np52/ENotGxlLe6aGMvmF4R8S6tZjsP6Knsaxd/xp3Zrh50cG93lR6nPXyUFwzN3ZSOQI0wRJNdGg==" |
6508 | 6508 | }, |
6509 | 6509 | "jquery-color": { |
6510 | 6510 | "version": "github:jquery/jquery-color#95402e5b2f1184ab2de7014aeef0a90f2bee0a40", |
… |
… |
|
6527 | 6527 | } |
6528 | 6528 | }, |
6529 | 6529 | "jquery-migrate": { |
6530 | | "version": "1.4.1", |
6531 | | "resolved": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-1.4.1.tgz", |
6532 | | "integrity": "sha1-hRUvPsmalWJfT30Lz2LpuGOPWnY=", |
| 6530 | "version": "3.0.1", |
| 6531 | "resolved": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-3.0.1.tgz", |
| 6532 | "integrity": "sha512-NYlhcFnRh4Bv9jvadPlcAKQdVGRE0+TSgFYxQ+ZnCxUUHbwd+SjbOg+Xvu1Oea9mpQJ+2VB1eCfcBORWNQsHaA==", |
6533 | 6533 | "dev": true |
6534 | 6534 | }, |
6535 | 6535 | "jquery-ui": { |
diff --git package.json package.json
index 96aa92a301..06a4c70525 100644
|
|
|
39 | 39 | "grunt-sass": "2.0.0", |
40 | 40 | "grunt-webpack": "^3.0.2", |
41 | 41 | "ink-docstrap": "^1.3.0", |
42 | | "jquery-migrate": "1.4.1", |
| 42 | "jquery-migrate": "3.0.1", |
43 | 43 | "matchdep": "~1.0.0", |
44 | 44 | "webpack": "^3.6.0", |
45 | 45 | "webpack-dev-server": "^2.9.1" |
… |
… |
|
47 | 47 | "dependencies": { |
48 | 48 | "backbone": "1.3.3", |
49 | 49 | "imagesloaded": "3.2.0", |
50 | | "jquery": "1.12.4", |
| 50 | "jquery": "3.3.1", |
51 | 51 | "jquery-color": "github:jquery/jquery-color#2.1.1", |
52 | 52 | "jquery-form": "4.2.1", |
53 | 53 | "jquery-hoverintent": "1.8.3", |
diff --git src/js/_enqueues/wp/customize/controls.js src/js/_enqueues/wp/customize/controls.js
index ed75ba3df1..2bebc3cbe9 100644
|
|
|
1104 | 1104 | return; |
1105 | 1105 | } |
1106 | 1106 | |
1107 | | duration = ( 'resolved' === api.previewer.deferred.active.state() ? args.duration : 0 ); |
| 1107 | duration = ( api.previewer && 'resolved' === api.previewer.deferred.active.state() ? args.duration : 0 ); |
1108 | 1108 | |
1109 | 1109 | if ( construct.extended( api.Panel ) ) { |
1110 | 1110 | // If this is a panel is not currently expanded but another panel is expanded, do not animate. |
diff --git src/js/_enqueues/wp/customize/widgets.js src/js/_enqueues/wp/customize/widgets.js
index 40b514876b..13e0c33f24 100644
|
|
|
1688 | 1688 | noticeContainer.toggle( shouldShowNotice() ); |
1689 | 1689 | }); |
1690 | 1690 | api.bind( 'pane-contents-reflowed', function() { |
1691 | | var duration = ( 'resolved' === api.previewer.deferred.active.state() ) ? 'fast' : 0; |
| 1691 | var duration = ( api.previewer && 'resolved' === api.previewer.deferred.active.state() ) ? 'fast' : 0; |
1692 | 1692 | updateNotice(); |
1693 | 1693 | if ( shouldShowNotice() ) { |
1694 | 1694 | noticeContainer.slideDown( duration ); |
diff --git tests/qunit/wp-admin/js/customize-controls.js tests/qunit/wp-admin/js/customize-controls.js
index 47ab5c0203..57558f4942 100644
|
|
wp.customize.settingConstructor.abbreviation = wp.customize.Setting.extend({ |
6 | 6 | } |
7 | 7 | }); |
8 | 8 | |
9 | | jQuery( window ).load( function (){ |
| 9 | jQuery( document ).ready( function (){ |
10 | 10 | 'use strict'; |
11 | 11 | |
12 | 12 | var controlId, controlLabel, controlType, controlContent, controlDescription, controlData, mockControl, |
diff --git tests/qunit/wp-admin/js/customize-nav-menus.js tests/qunit/wp-admin/js/customize-nav-menus.js
index 3ac6da8662..04b5126918 100644
|
|
|
1 | 1 | /* global wp */ |
2 | | jQuery( window ).load( function (){ |
| 2 | jQuery( document ).ready( function (){ |
3 | 3 | |
4 | 4 | var api = wp.customize, |
5 | 5 | primaryMenuId = 3, |
diff --git tests/qunit/wp-admin/js/customize-widgets.js tests/qunit/wp-admin/js/customize-widgets.js
index 5f754a497a..416b7b9234 100644
|
|
|
1 | 1 | /* global wp */ |
2 | | jQuery( window ).load( function() { |
| 2 | jQuery( document ).ready( function() { |
3 | 3 | |
4 | 4 | var api = wp.customize, $ = jQuery; |
5 | 5 | |