-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace deprecated jQuery methods #545
Comments
Reproduced ✅
The Root Cause
incorrectly uses NOTE: Not in OP, and not currently causing a warning, but just above this on L:242 is also
should replace
resolves the deprecation. There is a second use of
Which should also be updated to:
Following these changes, the Estimate Effort: |
* replace deprecated jquery functions * run grunt js * fix more deprecated jquery Co-authored-by: Caspar Green <[email protected]>
* replace deprecated jquery functions * run grunt js * fix more deprecated jquery Co-authored-by: Caspar Green <[email protected]>
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
When checking on WordPress 5.7 + SCRIPT_DEBUG defined, we're getting the following warnings:
JQMIGRATE: jQuery.fn.removeAttr no longer sets boolean properties: disabled
inpricing-modal.js
JQMIGRATE: jQuery.fn.focus() event shorthand is deprecated
inadmin.js
To Reproduce
Steps to reproduce the behavior:
define( 'SCRIPT_DEBUG', true );
to wp-config.phpWhat Plan do I need
Expected behavior
We should be compatible with the new jQuery version
Additional context
Wasn't able to find any other deprecations but we should recheck this carefully.
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: