WordPress 5.6 jQuery version updates and solution for jQuery

Last updated:

WordPress 5.6 will include the latest version of jQuery 3.5.1, a major upgrade from 1.x to 3.x. Here's the schedule of jQuery versions and the differences.

What is jQuery?

jQuery is a JavaScript library published as open source software (OSS).

It can be written in less code and absorbs the differences in behavior between browsers.

jQuery Upgrade Schedule

WordPress’s bundled jQuery will be upgraded in the following steps.

WordPress 5.5

WordPress 5.5 was released on August 11, 2020.

Features using old jQuery code may not work due to the removal of jQuery Migrate.

Install and activate EnablejQuery MigrateHelper to resolve it.

The following article describes WordPress 5.5.

WordPress 5.6

WordPress 5.6 is scheduled for release on December 8, 2020.

The following article describes WordPress 5.6.

WordPress 5.7

Remove jQuery Migrate

The following article describes WordPress 5.7.

The difference between jQuery 1.x and 3.x

Support Browsers

3.x

BrowserVersion
Chrome / Edge / Firefox / SafariThe latest version and its one previous version
OperaLatest version
Internet Explorer9 or more
Safari for iOSiOS 7 or more
Android4.0 or more

1.x

In addition to the above, legacy browsers are supported.

BrowserVersion
Internet Explorer6-8
Opera12.1x
Safari5.1 or more

If you want to support IE8 or lower, you need to use the jQuery 1.x series.

What is jQuery Migrate?

jQuery Migrate is a migration library that solves compatibility issues with different versions of jQuery.

Restore or detect deprecated/deleted code.

How to upgrade from jQuery 1.12.x series to 3.x series?

To upgrade jQuery, do the following steps

  1. Upgrade to jQuery 3.x
  2. Fix the warning using jQuery Migrate 3.x series
  3. Remove jQuery Migrate

Test jQuery in WordPress

There is a plugin that allows you to test jQuery before updating WordPress. Do not use it in the production environment.

Test jQueryUpdates

Fix the deprecated/removed code

The following code is deprecated/removed in jQuery 3.5.1 and should be fixed before updating WordPress.

live()

Removed in jQuery 1.9. Use on() instead of live().

die()

Removed in jQuery 1.9. Use on() instead of die().

size()

Removed in jQuery 3.0. Use length instead of size().

error()

Removed in jQuery 3.0. use on() instead of error().

load()/unload()

Removed in jQuery 3.0; use on() or trigger() instead of load()/unload().

bind()

Since jQuery 3.0, it is deprecated; use on() instead of bind().

unbind()

Since jQuery 3.0, it has been deprecated. off() is used instead of unbind().

go to top