Description
Manage jQuery and jQuery Migrate on a WordPress website, activate a specific jQuery and/or jQuery Migrate version. The ultimate jQuery debugging tool for WordPress
TLDR: Update jQuery / Remove jQuery Migrate / jQuery Updater and get notified of a jQuery update / manage jQuery
Do you know some older jQuery version is vulnerable and if using your site is at risk! Are you running the latest version of jQuery in your WordPress website? I ran a security scan against my website through Netsparker and found one of the vulnerabilities as “ Out-of-date Version (jQuery Migrate).”. Over 2,000 Plugins with jQuery Conflicts. According to a post on WordPress, a search of the plugin directory that was conducted two weeks ago discovered over 2,000 plugins that had conflicts.
Features
- Remove jQuery Migrate – if you use plugins which are updated regularly, then you can probably disable / remove jQuery Migrate.
- jQuery Updater – If this plugin is installed and activated, jQuery will be updated when you update this plugin
- Select jQuery (Migrate) version — Activate / select a specific version of jQuery and/or jQuery Migrate.
- Debug mode – Debug mode for developers
- Active support – Active support through WordPress support forum and GitHub issues page
Note that jQuery Manager requires PHP 5.6+ to run.
When the plugin is activated the latest stable version of jQuery and jQuery Migrate are added to your website. The default is sufficient for most people, however the settings provide a way for you to tweak your jQuery install.
jQuery Manager for WordPress is an open source project and I would like to invite anyone to contribute. The development and issue tracker is located on GitHub, see: https://github.com/Remzi1993/jquery-manager
jQuery Updater – checks jQuery version
This plugin is especially designed to update and keep track of jQuery. When a new version of jQuery is released we update the plugin.
Updating the plugin will updates the jQuery version activated. Updates will be periodic, we also do (small) optimizations to our plugin from time to time.
Keep the plugin activated if you want to be alerted for any jQuery updates.
Also a Developer / Debugging tool
Everything should work as intended, you should check your website if everything works fine. If things don’t work, don’t panic. You can deactivate the plugin and return to the state before or tweak it’s settings until everything works as intended.
You should understand that not all themes and/or plugins support the latest jQuery version even with jQuery Migrate turned on, but for you to encounter this is highly unlikely if your theme or plugins are up to date.
This is also a developer/debugging tool.
I will not provide support on debugging your own JavaScript and/or jQuery code. (Only if you like to hire me, of course)
Reporting problems
Report bugs, issues, questions and/or feature request on our GitHub issues page.
I will only provide support on issues caused by this plugin, not your own JavaScript and/or jQuery code. (Again, I will provide paid support or fix all your issues if you’re willing to hire me to debug and/or optimize your website)
If you run into any bugs, turning this plugin off (by deactivation the plugin) will fully deactivate everything and return your website to it`s original state.
Translations
This plugin is not ready for translation. Plugin Internationalization (i18n) will eventually happen, see: https://github.com/Remzi1993/jquery-manager/issues/14
Additional Info
Idea Behind / Philosophy: It began as a plugin internally at our company, we would uses jQuery Updater plugin and this plugin was buggy and slow. That’s why we decided to fork this plugin and create our own WP plugin.
I think this plugin solves a major shortcoming in WordPress and gives you finite control over jQuery (giving you control which version you want to use).
Installation
Manual installation by uploading .zip file via WordPress admin
1. Navigate to > Plugins
> Add New
2. On your top left > click on Upload Plugin
and select your .zip file you downloaded from wordpress.org and click Install Now
3. By activating the plugin, jQuery and jQuery Migrate are updated to the latest stable version. (Plugin settings are located under Tools
)
Manual installation by uploading folder/directory via FTP, SFTP or SSH
1. Unzip (extract/unpack/uncompress) the .zip file you downloaded from wordpress.org
2. Upload the folder jquery-manager
to the /wp-content/plugins/
directory on your server
3. Activate the plugin through the ‘Plugins’ menu in WordPress
4. By activating the plugin, jQuery and jQuery Migrate are updated to the latest stable version. (Plugin settings are located under Tools
)
FAQ
Is this plugin compatible with PHP 5.6, 7, 7.1, 7.2, HHVM, et cetera, et cetera?
Short answer: probably. Long answer: I honestly don’t know for sure. As far as I know I didn’t use specific PHP 7 features. I made a simple plugin. That’s why I recommend a minimum of PHP 5.6. Also I do specific tests to ensure that I stay compatible with PHP 5.6
This plugin breaks my site! How do I fix it?
Deactivate the plugin and report this on the plugin support forum or report it on the GitHub project page, so that I could take a look into the matter.
Does this plugin modify my WP installation?
No modification to the WordPress installation is made, therefore deactivation and/or uninstallation of this plugin returns your site to it`s original state.
Which jQuery (Migrate) version do you support?
This plugin supports the 3 jQuery branches/versions and 2 versions of jQuery Migrate. You’re able to select/activate a specific version or to disable it/turn it off completely
There are two versions of jQuery Migrate. jQuery Migrate 1.x will help you update your pre-1.9 jQuery code to jQuery 1.9 up to 3.0.
jQuery Migrate 3.x helps you update code to run on jQuery 3.0 or higher. Most websites need jQuery Migrate 3.x, but if you have a modern/well supported WP theme and/or plugin(s) than you could give it a try to disable it. Check your browser dev tools if you see any errors.
jQuery versions
jQuery 3.x (default is compressed/minified production)
jQuery 2.x
jQuery 1.x
jQuery Migrate versions
jQuery Migrate 3.x (default is compressed/minified production)
jQuery Migrate 1.x
Is it possible to disable jQuery Migrate?
Yes, this is possible and done in the plugin settings.
Is it possible to enable a specific version of jQuery (Migrate)
Yes, this is possible and done in the plugin settings.
What is jQuery Migrate?
The jQuery Migrate plugin was created to simplify the transition from older versions of jQuery. The plugin restores deprecated features and behaviors so that older code will still run properly on newer versions of jQuery.
Use the uncompressed development version to diagnose compatibility issues, it will generate warnings on the console that you can use to identify and fix problems. Use the compressed production version to simply fix compatibility issues without generating console warnings.
There are two versions of jQuery Migrate. jQuery Migrate 1.x will help you update your pre-1.9 jQuery code to jQuery 1.9 up to 3.0.
jQuery Migrate 3.x helps you update code to run on jQuery 3.0 or higher.
How does the jQuery Updater work?
We update the plugin if a new version of jQuery is released. If you update the plugin, all jQuery versions will be updated.
Reviews
Wordpress Jquery Plugin
tl;dr
WordPress 5.6 will ship with jQuery 3.5.1 and an updated version of jQuery Migrate, which will help you identify potential compatibility issues in your extensions. Developers should ensure extensions are compatible with jQuery 3 because the WordPress Core team is currently planning to phase out the use of jQuery Migrate in WordPress 5.7.
The details
Earlier this year, the WordPress Core team shared the 3-phase plan they were implementing to upgrade WordPress Core’s bundled version of jQuery. That plan is currently in its second phase, which involves releasing WordPress 5.6 with jQuery 3.5.1 and jQuery UI 1.12.1. This release also upgrades WordPress Core to the latest version of the jQuery Migrate plugin, which gives specific advice about most of the major changes in jQuery 3 that may affect your code. You can also read additional details on deprecations and removals, and learn how to upgrade your code, by reading through the jQuery Core Upgrade Guide.
How can I test things?
There are instructions for debugging your code in a recent post from the WordPress Core team outlining phase 2 of the WordPress Core upgrade plan. In WordPress 5.6, you can load jQuery Migrate in debug mode by setting SCRIPT_DEBUG
to true
. This will output warnings and stack traces in your JavaScript console.
Wordpress Jquery Is Not Defined
How long do I have to make changes?
WordPress Core will be phasing out the jQuery Migrate plugin as early as WordPress 5.7 (pending additional testing), which is currently slated for release in March 2021. While there are still several months before that happens, we recommend starting your compatibility testing now in case it reveals unforeseen issues that need to be resolved in any of your dependencies.
You can follow along with the work we’re doing around jQuery 3 compatibility for WooCommerce in these related issues on GitHub. As we learn more, and as the final phase of WordPress Core’s jQuery 3 upgrade plan approaches, we’ll be sure to keep you updated here.
Wordpress Jquery Version
In the meantime, don’t hesitate to reach out to us in the comments section below or in the #developers
channel of our WooCommerce Community Slack.