Automattic / Co-Authors-Plus

Multiple bylines and Guest Authors for WordPress
https://wordpress.org/plugins/co-authors-plus/
GNU General Public License v2.0
287 stars 205 forks source link

jQuery: Update to remove deprecations #987

Open GaryJones opened 11 months ago

GaryJones commented 11 months ago

Here are the versions of jQuery included with core versions of WordPress:

WP 5.5 = jQuery 1.12.4 WP 5.6 = jQuery 3.5.1 WP 5.7 = jQuery 3.5.1 WP 5.8 = jQuery 3.6.0 WP 5.9 = jQuery 3.6.0 WP 6.0 = jQuery 3.6.0 WP 6.1 = jQuery 3.6.1 WP 6.2 = jQuery 3.6.4 WP 6.3 = jQuery 3.7.0

Once we require a higher minimum version of WordPress, then the jQuery code in the plugin should also be updated. https://api.jquery.com/category/deprecated/deprecated-3.0/ and the similar pages for later jQuery versions show the deprecations.

Don't switch away from deprecated functions to replacement functions if the replacement functions don't exist in a version of jQuery that maps to a version of WordPress that we still need to support.