Compatibility issues with latest jQuery 3.5.1
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 25.9k
- Forks
- 6.1k
- Avg merge
- 8d 53m
- Merged PRs (30d)
- 4
Description
WordPress 5.7 is changing from jQuery version 1.12.4 to jQuery 3.5.1!
We are using Select2.js for a few of our plugins. There are few deprecated methods stated by WordPress in Select2.js.
here is a list of those -
isFunction()
bind() -> https://api.jquery.com/bind/#bind-eventType-eventData-handler
trim() -> https://api.jquery.com/jQuery.trim/#jQuery-trim-str
focus()
I can see the isFunction() is changed in your recent beta update. Looking forward to the compatibility update.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by searching the Select2.js codebase for the listed deprecated jQuery methods and review the recent beta change for isFunction(). Compare the remaining usage with jQuery 3.5.1 and WordPress 5.7 compatibility expectations; done means the reported deprecated-method issues are addressed and compatibility is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100