deprecated jQuery function .load() used; breaks with new versions
-
On
inc/twenty20-shortcode.php:75
andinc/widget-twenty20.php:61
, the deprecated method
jQuery(window).load()
is used instead of
jQuery(window).on('load')
(or$(window).on('load')
).
This breaks the plugin when jQuery 3 is used and causes images not to be shown at all (height 0px).The
.load()
method is deprecated as of jQuery 1.8, and removed as of jQuery 3.0. Please fix these two usages; all other event handlers I could find in the plugin codebase are correctly attached with.on()
.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘deprecated jQuery function .load() used; breaks with new versions’ is closed to new replies.