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

WordPress Trac noreply at wordpress.org
Sun Apr 26 23:03:51 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):

 Replying to [comment:113 galbaras]:
 > I guess, then, that switching WordPress itself to native JS and only
 enqueuing it if it's listed as a dependency anywhere may be a way to take
 a step forward in core.

 Right. This is **the best way** to move to native JS. It is fully
 backwards compatible, and can be done at any time (not dependent on other
 changes in core). This is pretty straightforward for wp-admin as it
 [https://make.wordpress.org/core/handbook/best-practices/browser-support/
 supports only newer browsers]. Would be more problematic for the front-end
 as generally "all browsers that are currently in use" should be supported.

 > If there is no major significance to the inline version number, why not
 just change it...

 This may backfire. Even changing the (cache-busting) WP version string to
 `1.12.4-wp` brought some problems with plugins that were using it for
 other purposes, see #47342. Thinking that doing the work and updating
 jQuery is the best course of action :)

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


More information about the wp-trac mailing list