JQuery Migrate Warning
-
Great plugin so far, but have noticed that on each of my pages I’m getting the following warning:
JQMIGRATE: jQuery.fn.click() event shorthand is deprecated
migrateWarn @ jquery-migrate.js?ver=400604646:136
jquery-migrate.js?ver=400604646:138 console.tracewhich is being triggered by the following line of code in the Paid Memberships Subscription Plugin:
It’s not affecting functionality, but it seems like deprecated code should be phased out.
/**
* Toggle discount code box when the subscription plans field is shown from the
* Profile Builder Conditional Logic functionality
*/
$(document).on(“wppbAddRequiredAttributeEvent”, function (e) {
if ($(e.target).is(‘#pms_subscription_plans_discount_code’))
toggle_discount_box($(‘input[name=subscription_plans][type=radio]’).length > 0 ? $(‘input[name=subscription_plans][type=radio]:checked’) : $(‘input[name=subscription_plans][type=hidden]’))
})/** * Handles discount code validation when the user clicks the "Apply" discount button * */ $('#pms-apply-discount').click(function(e){
The topic ‘JQuery Migrate Warning’ is closed to new replies.