WP-Tiles icon indicating copy to clipboard operation
WP-Tiles copied to clipboard

WP 5.5 conflict

Open jkumeboshi opened this issue 4 years ago • 1 comments

I'm having problems using WP Tiles with WP 5.5 and later.

I get following JS errors in the console and many part of the admin site stops working. Disabling WP Titles plugin will not load the offending JS and everything working as expected.


Uncaught TypeError: $(...).live is not a function
jquery.reveal.js:20:25

tipsy jQuery
init_tipsy https://progettomediterranea.com/wp-content/plugins/wp-tiles/vafpress-framework/public/js/shared.min.js?ver=1.1:1
\<anonymous\> https:/progettomediterranea.com/wp-content/plugins/wp-tiles/vafpress-framework/public/js/shared.min.js?ver=1.1:1
jquery.tipsy.js:180:25


Uncaught TypeError: vp.init_ace_editor is not a function
init_controls 
https://progettomediterranea.com/wp-content/plugins/wp-tiles/vafpress-framework/public/js/shared.min.js?ver=1.1:1
\<anonymous\> https://progettomediterranea.com/wp-content/plugins/wp-tiles/vafpress-framework/public/js/shortcode-menu.js?ver=5.5.3:110

shared.min.js:1:18433

I've fixed it using following code in jquery.tipsy.js file:

if (this[binder])
    this[binder](eventIn, enter)[binder](eventOut, leave);

and in shared.min.js I've replaced the failing statement "a=e.browser.msie" with "a=false" (since who is using MSIE anymore to admin WP?)

jkumeboshi avatar Nov 23 '20 18:11 jkumeboshi

This is because jQuery Migrate is not enabled by default in WP 5.5: https://make.wordpress.org/core/2020/06/29/updating-jquery-version-shipped-with-wordpress/

There will be more jQuery change sin 5.6: https://make.wordpress.org/core/2020/11/05/updating-core-jquery-to-version-3-part-2/

Zodiac1978 avatar Nov 26 '20 13:11 Zodiac1978