Don't miss out on tutorials, special offers, and discounts we share with our subscribers!
We know that lots of you have been happily recommending Microthemer to your friends. This really helps us out. And to say thanks, we'd like to start giving you some commission for sending customers our way. Find out more.
WordPress 5.6 and jQuery UI
Roll back to fix issues
If your theme or plugin makes use of any jQuery UI components, it’s possible WordPress 5.6 will break things. And at the time of writing, the Enable jQuery Migrate Helper plugin will not help.
As well as updating the version of jQuery, WordPress 5.6 also updates the jQuery UI library from version 1.11.4 to version 1.12.1. There is no rollback option for jQuery UI in the migrate helper plugin. So until there is, we need to come up with our own interim solutions.
Of course the best thing to do is to update your code to be compatible with both the latest version of jQuery and jQuery UI that WordPress ships with. But if you have an active plugin, you need a solution that can be implemented in a matter of hours, rather than days or weeks. For me, the most sensible option for my WordPress CSS editor was to roll back jQuery UI, so I had enough time to update and properly test my code changes.
How to roll back jQuery UI
Because jQuery UI components are normally enqueued individually (e.g. one script for sortable, and another for autocomplete) they must be dequeued and then enqueued individually.
Example PHP code:
Code notes
I hope this helps someone!