diff --git package.json package.json
index 96aa92a301..2a568e5084 100644
|
|
|
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", |
54 | | "jquery-ui": "github:jquery/jquery-ui#1.11.4", |
| 54 | "jquery-ui": "github:jquery/jquery-ui#1.12.1", |
55 | 55 | "masonry-layout": "3.3.2", |
56 | 56 | "twemoji": "2.5.1", |
57 | 57 | "underscore": "1.8.3" |
diff --git src/js/_enqueues/wp/customize/base.js src/js/_enqueues/wp/customize/base.js
index 374f50300e..9af48b8ffd 100644
|
|
window.wp = window.wp || {}; |
592 | 592 | }; |
593 | 593 | |
594 | 594 | this.bind( this.update ); |
595 | | this.element.bind( this.events, this.refresh ); |
| 595 | this.element.on( this.events, this.refresh ); |
596 | 596 | }, |
597 | 597 | |
598 | 598 | find: function( selector ) { |
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/nav-menus.js src/js/_enqueues/wp/customize/nav-menus.js
index db846baaf2..3d477e5c7b 100644
|
|
|
221 | 221 | }); |
222 | 222 | |
223 | 223 | // Load available items if it looks like we'll need them. |
224 | | api.panel( 'nav_menus' ).container.bind( 'expanded', function() { |
| 224 | api.panel( 'nav_menus' ).container.on( 'expanded', function() { |
225 | 225 | if ( ! self.rendered ) { |
226 | 226 | self.initList(); |
227 | 227 | self.rendered = true; |
diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
index 12421811b6..22e08bf3bd 100644
|
|
function wp_default_scripts( &$scripts ) { |
207 | 207 | $scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array( 'scriptaculous-dragdrop' ) ); |
208 | 208 | |
209 | 209 | // jQuery |
210 | | $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '1.12.4' ); |
211 | | $scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '1.12.4' ); |
| 210 | $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '3.0.0' ); |
| 211 | $scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '3.2.1' ); |
| 212 | $scripts->add( 'jquery-legacy', '/wp-includes/js/jquery/jquery-legacy.js', array(), '1.12.4' ); |
212 | 213 | $scripts->add( 'jquery-migrate', "/wp-includes/js/jquery/jquery-migrate$suffix.js", array(), '1.4.1' ); |
213 | 214 | |
214 | 215 | // full jQuery UI |
diff --git tests/qunit/wp-admin/js/customize-controls.js tests/qunit/wp-admin/js/customize-controls.js
index 47ab5c0203..867c5a5a5c 100644
|
|
wp.customize.settingConstructor.abbreviation = wp.customize.Setting.extend({ |
6 | 6 | } |
7 | 7 | }); |
8 | 8 | |
9 | | jQuery( window ).load( function (){ |
| 9 | jQuery( window ).on( 'load', 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..ab8d6642b6 100644
|
|
|
1 | 1 | /* global wp */ |
2 | | jQuery( window ).load( function (){ |
| 2 | jQuery( window ).on( 'load', function (){ |
3 | 3 | |
4 | 4 | var api = wp.customize, |
5 | 5 | primaryMenuId = 3, |
… |
… |
jQuery( window ).load( function (){ |
79 | 79 | control = section.controls()[0]; |
80 | 80 | ok( control.extended( api.Menus.MenuNameControl ), 'control is a MenuNameControl' ); |
81 | 81 | equal( control.setting().name, 'Primary menu' ); |
82 | | ok( ! control.setting._dirty ); |
| 82 | ok( ! control.setting.dirty, 'control not dirty' ); |
83 | 83 | control.container.find( 'input[type=text]:first' ).val( 'Main menu' ).trigger( 'change' ); |
84 | 84 | equal( control.setting().name, 'Main menu' ); |
85 | | ok( control.setting._dirty ); |
| 85 | ok( control.setting.dirty, 'control dirty' ); |
86 | 86 | } ); |
87 | 87 | // @todo Add more tests for api.Menus.MenuNameControl |
88 | 88 | |
diff --git tests/qunit/wp-admin/js/customize-widgets.js tests/qunit/wp-admin/js/customize-widgets.js
index 5f754a497a..38bd093652 100644
|
|
|
1 | 1 | /* global wp */ |
2 | | jQuery( window ).load( function() { |
| 2 | jQuery( window ).on( 'load', function() { |
3 | 3 | |
4 | 4 | var api = wp.customize, $ = jQuery; |
5 | 5 | |