[wp-trac] [WordPress Trac] #51812: Update jQuery step three
WordPress Trac
noreply at wordpress.org
Thu Feb 18 16:19:11 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 |
-------------------------------------------------+-------------------------
Comment (by hellofromTonya):
Had reports of deprecated warnings:
{{{
1. /wp-admin/js/common.min.js: jQuery.fn.delegate() is deprecated
2. ..
3. /wp-admin/js/common.min.js: jQuery.fn.click() event shorthand is
deprecated
4. /wp-admin/js/common.min.js: jQuery.fn.bind() is deprecated
5. /wp-admin/js/common.min.js: jQuery.fn.mousedown() event shorthand is
deprecated
6. /wp-admin/js/common.min.js: jQuery.fn.focus() event shorthand is
deprecated
7. /wp-admin/js/svg-painter.js: jQuery.fn.hover() is deprecated
}}}
[https://wordpress.slack.com/archives/C02RQBWTW/p1613662550439300
Discussed in slack with @Clorith] `.click()` should be converted to
`.trigger('click')` except when coming from a different library. Marius
will take a look.
Looking in `common.js` script:
- `.click()` [https://github.com/WordPress/wordpress-
develop/blob/master/src/js/_enqueues/admin/common.js#L843 instance is
here]
- `.focus()` [https://github.com/WordPress/wordpress-
develop/blob/master/src/js/_enqueues/admin/common.js#L1345 instance is
here]
- `.bind()` [https://github.com/WordPress/wordpress-
develop/blob/master/src/js/_enqueues/admin/common.js#L1671 instance is
here]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51812#comment:70>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list