• Resolved kork

    (@kork)


    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.trace

    which 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){
Viewing 1 replies (of 1 total)
  • Plugin Support thomaswild

    (@thomaswild)

    Hello @kork,

    I have forwarded this to our development team. They will implement a fix that will be added in a future version of the plugin. Unfortunately I cannot provide an estimate as to when this might be.

    Thank you for notifying us!

Viewing 1 replies (of 1 total)

The topic ‘JQuery Migrate Warning’ is closed to new replies.