Title: Deprecated jQuery code
Last modified: March 23, 2021

---

# Deprecated jQuery code

 *  Resolved [titsmaker](https://wordpress.org/support/users/titsmaker/)
 * (@titsmaker)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/deprecated-jquery-code-15/)
 * Hi! As you know WordPress devs finally decided to upgrade to current JQuery version
   in 2020. Now WP core uses latest Jquery + JQuery Migrate and we can see all the
   JS notices.
    Your plugin has following deprecated jQuery code in …/woo-preview-
   emails/assets/js/select2.min.js:
 * `jQuery.isArray is deprecated; use Array.isArray`
 * You can see more detailed info about this deprecation here – [https://api.jquery.com/jquery.isarray/](https://api.jquery.com/jquery.isarray/)
   
   Can you please update the code?
 * P.S. Thank you for your efforts dedicated to maintaining this plugin!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/deprecated-jquery-code-15/#post-14222462)
 * Hi [@titsmaker](https://wordpress.org/support/users/titsmaker/) ,
 * Thanks for the heads up – while it is time to update the select2 library i couldn’t
   locate the particular code in my console warnings – i am seeing a few
 * `jQuery.isArray is deprecated; use Array.isArray`
 * But they seem to be from core jquery UI.
    Can you please post screenshot of the
   particular warning ?
 *  Thread Starter [titsmaker](https://wordpress.org/support/users/titsmaker/)
 * (@titsmaker)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/deprecated-jquery-code-15/#post-14222957)
 * Actually I was pointed towards your plugin by jQuery Migrate Helper plugin ([https://wordpress.org/plugins/enable-jquery-migrate-helper/](https://wordpress.org/plugins/enable-jquery-migrate-helper/))–
   [https://prnt.sc/10tfh7l](https://prnt.sc/10tfh7l)
    But in browser console the
   warning is related to jQuery UI indeed. It seems that they could not update their
   code for some reason – [https://bugs.jqueryui.com/ticket/14992](https://bugs.jqueryui.com/ticket/14992)
 * This is beyond my understanding. I would be happy if you share your opinion.
 *  Plugin Author [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/deprecated-jquery-code-15/#post-14226541)
 * It seems to me it is something to do with other plugins that are using jQuery
   UI.
    Since my plugin isn’t using jQuery UI from WordPress core – I am pretty 
   sure that notice isn’t coming from it.
 * In a blank instance and with jQuery migrate plugin no errors/warning are shown.
 *  Thread Starter [titsmaker](https://wordpress.org/support/users/titsmaker/)
 * (@titsmaker)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/deprecated-jquery-code-15/#post-14227013)
 * On one hand I tried deactivating all the plugins and switching to default theme
   and I am still getting this warning on plugin’s page.
    On the other hand inspecting
   select2 library I found that there are no `$.isArray` indeed.
 * I suppose this warning comes from WordPress itself but is wrongly assigned by
   Enable jQuery Migrate Helper plugin.
 * Thank you for your assistance.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Deprecated jQuery code’ is closed to new replies.

 * ![](https://ps.w.org/woo-preview-emails/assets/icon-256x256.png?rev=3019089)
 * [Preview E-mails for WooCommerce](https://wordpress.org/plugins/woo-preview-emails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-preview-emails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-preview-emails/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-preview-emails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-preview-emails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-preview-emails/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [titsmaker](https://wordpress.org/support/users/titsmaker/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/deprecated-jquery-code-15/#post-14227013)
 * Status: resolved