A History of jQuery Versions Included in WordPress

WordPress & jQueryThe latest version of jQuery included in WordPress can always be found on the WordPress GitHub Repository.

A surprising number of WordPress installations are still using jQuery 1.6.4 and even older. Sometimes it helps us realise the current state of things are not so bad by looking back over the shoulder and appreciating just how far things have progressed through the years. The following is a brief history of jQuery and WordPress.

WordPress & jQuery

On Tuesday, May 15, 2007, WordPress version 2.2 was released that consisted “mainly of bug-fixes, feature enhancements, and security fixes.” One of the feature enhancements listed was the announcement that jQuery library was being used for core JS:

Switched to jQuery for core JS, which is lighter and faster.

With each minor release WordPress has updated the jQuery library to the latest stable version. jQuery version 1.12.4 has been included with WordPress since WordPress 4.6 was released on August 16, 2016.

List of the jQuery library version that was included with each minor WordPress release:

Currently there are over 1000 actively updated jQuery plugins hosted at WordPress.org that have been added or updated in the last 12 months. If you, or someone you know is using jQuery in a WordPress plugin or theme, please, please, please use the safe and recommended method of adding JavaScript to WordPress: wp_enqueue_script().

Why WordPress still uses jQuery v1.12.4

Since a large number of themes and plugins are using jQuery as loaded by WP core, WordPress can not simply update jQuery without risking major conflict issues. Here is a great thread on StackExchange with more info on this issue.