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

WordPress Trac noreply at wordpress.org
Thu Apr 23 23:58:56 UTC 2020


#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 azaozz):

 This has been a long time coming, and the longer the delay, the harder it
 gets. Looking at https://jquery.com/upgrade-guide/3.0/#jquery-migrate-
 plugin the recommended steps are:

 1. Disable jQuery Migrate 1.x.
 2. Update to jQuery 3.x and jQuery Migrate 3.x.
 3. Disable jQuery Migrate 3.x.

 Seems that for best results each step should be in a separate release. It
 will take three WP releases to complete the update.

 For back-compat there could be a (bundled?) plugin that will revert jQuery
 to 1.12.4 in order to "unbreak" sites that experience problems. This is
 far from ideal, but having an official plugin is better.

 Thinking the update process can be started in WP 5.5 by disabling jQuery
 Migrate 1.x and moving it to a plugin. This may break a few old sites but
 generally should be quite safe.

 Then the "big push" would be in WP 5.6 where ***everybody*** using WP
 should hear that they need to test their site with the updated jQuery. To
 be able to do this we'll make another testing plugin that replaces jQuery
 and jQuery UI with the latest versions.

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


More information about the wp-trac mailing list