• Resolved sevimo

    (@sevimo)


    jQuery.load(handler) has been deprecated since 1.8, and is completely removed in jQuery 3.x. This means that there is one line in UM code that breaks any modern jQuery (for people who keep their jQ framework more up to date than the ancient version in the base WP). Here is a trivial fix for that (just one line, does not change the semantics):

    
    function um_add_form_honeypot_js() {
            ?>
                    <script type="text/javascript">
    //                      jQuery(window).load(function() {
                            jQuery(window).on("load", function() {
                                    jQuery("input[name='<?php echo esc_js( UM()->ho$
                            });
                    </script>
            <?php
    }
    

    Would be great if that is fixed in the UM directly.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @sevimo

    Thanks for letting us know. We are aware of this issue and this will be fixed on the next update.

    Regards,

    • This reply was modified 4 years, 5 months ago by Champ Camba.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @sevimo

    ..This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘jQuery.load is deprecated’ is closed to new replies.