Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determining Versions of jQuery with WordPress?

How do I determine the versions of jQuery that shipped with each version of WordPress since like version 2.7? Was there a log kept somewhere on this? Because as a plugin developer, I may need to rely on a function that might not work in older versions of WordPress.

like image 538
Volomike Avatar asked May 25 '10 02:05

Volomike


People also ask

What version of jQuery does WordPress use?

WordPress currently bundles jQuery version 1.12. 4, a version of the library released in 2016. It is also a version that supports Internet Explorer 6, 7, and 8.

How do I know what version of jQuery I have?

Type this command in the Chrome Developer Tools Javascript console window to see what version of the jQuery is being used on this page: console. log(jQuery(). jquery);


1 Answers

You can query the version of jQuery:

// Returns string Ex: "1.3.1"
$().jquery;

// Also returns string Ex: "1.3.1"
jQuery.fn.jquery;
like image 119
cletus Avatar answered Sep 23 '22 03:09

cletus