[wp-trac] [WordPress Trac] #51812: Update jQuery step three
WordPress Trac
noreply at wordpress.org
Mon Feb 22 23:18:45 UTC 2021
#51812: Update jQuery step three
-------------------------------------------------+-------------------------
Reporter: azaozz | Owner:
| SergeyBiryukov
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 5.7
Component: External Libraries | Version:
Severity: normal | Resolution:
Keywords: has-patch early needs-testing | Focuses: javascript
needs-dev-note commit |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* keywords: has-patch early needs-testing needs-dev-note => has-patch
early needs-testing needs-dev-note commit
Comment:
Marking [https://github.com/WordPress/wordpress-develop/pull/1032 PR
#1032] for `commit`.
This PR addresses some of the jQuery 3.5 depreciations, though much will
need to continue into 5.8 (we're just too close to RC).
For shorthand event deprecations, changes from `.eventName()` to `.on(
'eventName',` or when triggering converts to `.trigger( 'eventName' )`:
- `.blur()`
- `.click()`
- `.change()`
- `.focus()`
- `.keypress()`
- `.keyup()`
- `.bind()`
- `.unbind()`
- `.unload()`
- `.submit()`
and a few others:
- `$.parseJSON` to `JSON.parse`
- `jQuery.isFunction()` to `typeof ... === 'function'`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51812#comment:72>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list