• Resolved seamusvelocitygrowth

    (@seamusvelocitygrowth)


    Version: 10.1.30

    When using the development version of jQuery Migration (unminified version), it warns that .change() is being used. Please remove the deprecated method to remove the dependency.

    JQMIGRATE: jQuery.fn.change() event shorthand is deprecatedmigrateWarn

    If you only want to enable the development version of jQuery migration, you can use the below code:

    <?php
    add_action ('wp_enqueue_scripts', 'dev_jquery_migration');
    
    function dev_jquery_migration() {
        global $wp_scripts;
        if (isset($wp_scripts->registered['jquery-migrate']->ver)) {
            $jquery_version = $wp_scripts->registered['jquery-migrate']->ver;
            wp_deregister_script ('jquery-migrate');
            wp_register_script ('jquery-migrate', "/wp-includes/js/jquery/jquery-migrate.js?ver=$jquery_version");
        }
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support gsugrue

    (@gsugrue)

    Hi @seamusvelocitygrowth,

    Thanks for reaching out. We have tried reproducing the error you mentioned but didn’t see the warning.

    To help us pinpoint the issue can you:
    1. Please deactivate all other plugins, leaving only ours active.
    2. If the error persists, open your browser’s developer tools, go to the ‘Console’ tab, and take a screenshot of any warnings or errors.
    3. Email the screenshot to us at our support email: [email protected]

    This information will help us better pinpoint where the issue is.

    Thanks and Best Regards,
    Gearoid

    Plugin Support harthur90

    (@harthur90)

    Hi @seamusvelocitygrowth We are closing this support thread due to inactivity. You can re-open if needed.

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Please update jQuery to remove need for jQuery migration’ is closed to new replies.