WPIntell

Source evidence

Deprecated jQuery code

Ajax Cart AutoUpdate for WooCommerce · support · 2021-03-24T07:06:00+00:00

complaintsentiment
mediumseverity
0.86relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 26 rows with source links

15.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
titsmaker unresolved
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 in console by default. Your plugin has following deprecated jQuery code in ajax-cart-autoupdate-for-woocommerce-admin.js: jQuery.fn.change() event shorthand You can see more detailed info about this deprecation here – https://github.com/jquery/jquery/issues/3214 Although they will hardly ever remove these shorthands but this syntax is discouraged by jQuery devs. Can you please update the code? P.S. Thank you for your efforts dedicated to maintaining this plugin! Hello, thanks for finding and reporting this issue. I’ve fixed it and included in the update. Best regards, Ryszard Thank you for resolving this and maintaining this plugin! Ironically right after updating I descovered another jQuery deprecation in ajax-cart-autoupdate-for-woocommerce-admin.js : jQuery.isFunction() Here is some information about this deprecation – https://api.jquery.com/jquery.isfunction/

Comments

3 shown
taisho 2021-03-30T21:33:00+00:00

Hello, thanks for finding and reporting this issue. I’ve fixed it and included in the update. Best regards, Ryszard

titsmaker 2021-03-30T21:41:00+00:00

Thank you for resolving this and maintaining this plugin!

titsmaker 2021-03-31T08:31:00+00:00

Ironically right after updating I descovered another jQuery deprecation in ajax-cart-autoupdate-for-woocommerce-admin.js : jQuery.isFunction() Here is some information about this deprecation – https://api.jquery.com/jquery.isfunction/