jQuery.live() will cause an error in WP 5.5
-
In
assets/js/shipping_row.js
there is a call tojQuery.live()
. That function was removed from jQuery in version 1.9.Versions of WP prior to 5.5 have loaded
jquery-migrate.js
which provides a polyfil for it, but version 5.5 will not do so. See Updating jQuery version shipped with WordPress.You should replace that call with
jQuery.on()
(see .live()). There are many other uses ofjQuery.on()
in your code so it seems like you know how to use it.You can test this by installing WP 5.5 Beta 3 and activating this plugin.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘jQuery.live() will cause an error in WP 5.5’ is closed to new replies.