[wp-trac] [WordPress Trac] #37110: Update to jQuery 3.*

WordPress Trac noreply at wordpress.org
Thu Jun 14 14:28:24 UTC 2018


#37110: Update to jQuery 3.*
-------------------------------------------------+-------------------------
 Reporter:  jorbin                               |       Owner:  (none)
     Type:  task (blessed)                       |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  External Libraries                   |     Version:
 Severity:  critical                             |  Resolution:
 Keywords:  early has-patch needs-testing        |     Focuses:  javascript
  needs-dev-note needs-screenshots needs-        |
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by LittleBigThing):

 Hi Adam,

 I think that

 {{{
 wp.customize.on( 'ready', function() {
 }}}

 in customize-controls.js should be

 {{{
 $(wp.customize).ready( function() {
 }}}

 The `.on( "ready", fn)` seems to have been removed from jQuery 3.0:
 https://jquery.com/upgrade-guide/3.0/#breaking-change-on-quot-ready-quot-
 fn-removed

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/37110#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list