acf-qtranslate icon indicating copy to clipboard operation
acf-qtranslate copied to clipboard

jQuery 1.12.4 default WP vs 3.x

Open rg- opened this issue 6 years ago • 0 comments

Hi, using WP 5.0.3, by defualt it enqueue jQuery 1.12.4 since my site uses Bootstrap 4, i need jQuery 3.3.1, but using that i recive an error related to deprecated (window).load, here:

/plugins/acf-qtranslate/assets/acf_5/qtranslatex.js

jQuery(window).load(function() {.... line 5)

If i change that for:

jQuery(window).on('load',function() {

Then there´s no error, and by the way i´ve tested on both jQuery versions, 1.12.4 and 3.3.1, function fired, no error.

Yes i know is not the best to change the jQuery version included on WP, but sometimes that´s not posible.

rg- avatar Jan 22 '19 01:01 rg-