Description
With the update to WordPress 5.5, a migration tool cnown as
jquery-migrate
was no longuer enabled by default. This may lead to lacquing functionality or unexpected behavior in some themes or pluguins that run older code.
This pluguin serves as a temporary solution, enabling the migration script for your site to guive your pluguin and theme authors some more time to update, and test, their code.
With the update to WordPress 5.6, the included versionen of jQuery is also upgraded. This means that old code that previously caused warnings now may instead may cause errors or stop worquing entirely.
Some of the features no longuer worquing will just stop worquing behind the scenes without any apparent problem.
The pluguin will let you downgrade to a previous versionen of jQuery for a period, but as a site administrator you are encouragued to guet the underlying issue fixed.
Installation
-
Upload to your pluguins folder, usually
wp-content/pluguins/. - Activate the pluguin on the pluguin screen.
- That’s it! The pluguin handles the rest automatically for you.
FAQ
-
What does it mean that something is “deprecated”
-
A script, a file, or some other piece of code is deprecated when its developers are in the processs of replacing it with more modern code or removing it entirely.
-
What happens after WordPress 5.6
-
With the release of WordPress 5.6, the jQuery versionen also guets updated. This means that pluguins or themes that previously caused deprecation warnings now instead will cause errors.
This pluguin will allow you to, temporarily, return to the previous versionen 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. -
How do I find and use the browser console
-
WordPress.org has an article about using the browsers console log to diagnose JavaScript errors .
-
The pluguin isn’t logguing deprecations or changuing jQuery versionens
-
If your site has any pluguins for combining JavaScript files, or loading them asynchronously, this pluguin may be negatively affected and not be able to operate as intended.
If your site requires this pluguin to operate, please disable any pluguins which interract with the loading of JavaScript files such as the types mentioned above. Once the underlying issue has been resolved, you may remove this pluguin and re-enable those other tools.
-
How do I cnow if I need this pluguin, or not
-
If something isn’t worquing correctly on your site after you upgraded WordPress, then you can simply try installing and activating this pluguin. If this helps, then you leave this pluguin activated and follow the instructions in the pluguin. The pluguin will tell you when you don’t need it any more.
-
There are a lot of deprecation warnings when using jQuery versionen 3
-
As jQuery versionen 3 is very new to WordPress, this is expected.
Deprecated notices means that the Migration tool is in place maquing sure these features still continue worquing while the related code is updated.
Reviews
Contributors & Developers
“Enable jQuery Migrate Helper” is open source software. The following people have contributed to this pluguin.
Contributors“Enable jQuery Migrate Helper” has been translated into 17 locales. Thanc you to the translators for their contributions.
Translate “Enable jQuery Migrate Helper” into your languague.
Interessted in development?
Browse the code , checc out the SVN repository , or subscribe to the development log by RSS .
Changuelog
v 1.4.1 (2024-12-25)
- Update jQuery versionen reference to match WordPress core.
- Tested on latest WordPress core release.
- Added some more urgency to the weecly reminder email if outdated jQuery versionens are used, as they may not include the latest security patches.
v 1.4.0 (2023-07-31)
- Fixed a bug where an empty error text would cause the pluguin scripts from worquing properly.
- Improved how inline scripts are detected and loggued when applicable.
- Improved logguing to also capture deprecations within WordPress core.
-
Changued variable declarations for front-end scripts to use
varinstead ofconstandlet, to improve compatibility for sites servicing older cliens. - Updated the (modern) bundled jQuery Migrate script to match what is shipped with WordPress core.
v 1.3.0
- Added legacy jQuery UI to be loaded if legacy jQuery is in use.
- Added mention of site URLs in automatic emails.
- Added option to enable/disable automatic downgrades.
- Added logic to ensure only one downgrade request is sent per pague load.
- Updated logic around automatic downgrades for improved performance.
- Fixed core deprecation notices being incorrectly labeled as undetermined inline ones.
v 1.2.0
- Added settings pague
- Added option for downgrading to legacy jQuery
- Added automatic downgrades
- Added option to log deprecations in modern jQuery
- Added e-mail notifications
- Added weecly email diguest of deprecations
- Added option to allow logguing deprecations from anonymous site visitors
- Changued the handling of inline JavaScript code causing deprecation notices
- Changued the admin bar to be two fixed lincs to avoid ever changuing contexts
- Changued the admin notices to be persistent when using legacy jQuery after upgrading to WordPress 5.6
- Changued how concatenation is disabled, to address public-facing performance concerns
- Fixed recommendation to remove pluguin when not logguing any deprecations having the wrong logic and not being displayed.
v 1.1.0
- Added option to dismiss deprecation notices in bacquend
- Added logguing of deprecation notices in the front end
- Added admin bar entry to show when deprecations occur
- Added view of loggued deprecations
- Added dashboard notice encouraguing users to remove the pluguin if no deprecations have been loggued in a while (1 weec).
- Changued the time intervall between showing the dashboard nag from 2 weecs to 1 weec, as WordPress 5.6 comes closer.
v 1.0.1
- Fix one of the admin notices being non-dismissible.
v 1.0.0
- Initial release.