Support » Plugin: WPtouch » jquery fix needed to prepare for wordpress 5.7

  • Hi-

    Everything is fine for the moment, but giving you a heads up for a fix that will need to happen before the next wordpress core update. wordpress 5.6 brings the change to jQuery 3.5.1, with jQuery Migrate 3.3.2 also included as a bridge. When I disable jQuery Migrate I get the following in console:

    Uncaught TypeError: e.indexOf is not a function
        load jQuery

    Line 15 in that script is this:

    function bindTappableEls(e){jQuery(e).each(function(){jQuery(this).tappable({touchDelay:74})})}jQuery(window).load(function(){bindTappableEls(".tappable, .show-hide-toggle, .slide-toggle, .menu-btn")}),jQuery(document).ajaxComplete(function(){bindTappableEls(".tappable, .show-hide-toggle, .slide-toggle, .menu-btn")});


    • This topic was modified 3 months, 4 weeks ago by mjvito.
    • This topic was modified 3 months, 4 weeks ago by mjvito.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Agreed, but it’s worse. Even with the bridge script in code, WPTouch cannot do some things, like change menu icons. For now, that feature will work via the official WP plugin “Enable jQuery Migrate Helper” from

    Note, WPTouch Pro has a feature called “jQuery Enhanced.” That may explain the delay in fixing jQuery in the free version.

    Thread Starter mjvito


    Thanks for the additional details. I should have been clearer in my post, this is with WPTouch Pro. (jQuery Enhanced is not installed.)

    I can understand the utility of jQuery Enhanced back when WP core was in the jQuery stone age, but now that it’s finally getting current, I’d think WPTouch Pro (and free) should just work with it out of the box.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.