Get information about calls to deprecated jQuery features in plugins or themes.
With the update to WordPress 5.5, a migration tool known as jquery-migrate
was no longer enabled by default. This may lead to lacking functionality or unexpected behavior in some themes or plugins that run older code.
This plugin serves as a temporary solution, enabling the migration script for your site to give your plugin and theme authors some more time to update, and test, their code.
With the update to WordPress 5.6, the included version of jQuery is also upgraded. This means that old code that previously caused warnings now may instead may cause errors or stop working entirely.
Some of the features no longer working will just stop working behind the scenes without any apparent problem.
The plugin will let you downgrade to a previous version of jQuery for a period, but as a site administrator you are encouraged to get the underlying issue fixed.
wp-content/plugins/
.A script, a file, or some other piece of code is deprecated when its developers are in the process of replacing it with more modern code or removing it entirely.
With the release of WordPress 5.6, the jQuery version also gets updated. This means that plugins or themes that previously caused deprecation warnings now instead will cause errors.
This plugin will allow you to, temporarily, return to the previous version of jQuery if this happens (it will also try to do so automatically for website visitors the first time an error happens) allowing you to fix the code, or replace it.
WordPress.org has an article about using the browsers console log to diagnose JavaScript errors.
If your site has any plugins for combining JavaScript files, or loading them asynchronously, this plugin may be negatively affected and not be able to operate as intended.
If your site requires this plugin to operate, please disable any plugins which interact with the loading of JavaScript files such as the types mentioned above. Once the underlying issue has been resolved, you may remove this plugin and re-enable those other tools.
If something isn’t working correctly on your site after you upgraded WordPress, then you can simply try installing and activating this plugin. If this helps, then you leave this plugin activated and follow the instructions in the plugin. The plugin will tell you when you don’t need it any more.
As jQuery version 3 is very new to WordPress, this is expected.
Deprecated notices means that the Migration tool is in place making sure these features still continue working while the related code is updated.
var
instead of const
and let
, to improve compatibility for sites servicing older clients.