[wp-trac] [WordPress Trac] #37110: Update to jQuery 3.*
WordPress Trac
noreply at wordpress.org
Sat Aug 1 20:46:35 UTC 2020
#37110: Update to jQuery 3.*
-------------------------------------------------+-------------------------
Reporter: jorbin | Owner: (none)
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 5.5
Component: External Libraries | Version:
Severity: critical | Resolution:
Keywords: early has-patch needs-testing | Focuses: javascript
needs-screenshots has-dev-note commit |
-------------------------------------------------+-------------------------
Comment (by azaozz):
Looking a bit more at 37110-add-dependency.diff, it may introduce a
circular dependency (`jquery` depends on `jquery-migragte`, and `jquery-
migragte` depends on `jquery`) if a plugin restores the way the `jquery`
script-handle used to work in WP 5.4 and earlier. For example the
https://github.com/WordPress/wp-jquery-update-test does this with the
appropriate settings, see https://github.com/WordPress/wp-jquery-update-
test/blob/trunk/class_wp_jquery_update_test.php#L59.
If core has to provide an easy way for plugins and themes to still be able
to load jQuery with jQuery Migrate, something like 37110-add-
dependency.2.diff will be preferable. Then, once jQuery is updated to 3.x,
the temporary script-handle can be removed. This means plugins and themes
that still use it at that point will fail to load their scripts (as a
dependency will be missing), but will not cause "fatal errors" breaking
the rest of js.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37110#comment:171>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list