jQuery error in custom theme after upgrading to 5.3
-
After upgrading to WordPress 5.3 this Javascript error shows up in the console:
Uncaught TypeError: $ is not a function at bindPlayer (xrcbplayer.js?ver=20180910:114) at HTMLDocument.<anonymous> (xrcbplayer.js?ver=20180910:95) at i (jquery.js?ver=1.12.4-wp:2) at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2) at Function.ready (jquery.js?ver=1.12.4-wp:2) at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
I know that it is a problem of my custom theme – but it wasn’t there with WordPress 5.2. So I would like to know if there have been made any chances to jQuery I should have in mind in 5.3?
I already fixed it by changing all
$
appearances tojQuery
, or put everything insidejQuery(document).ready(function($) { });
.But I still would like to know why this happened. It seems to me so that the order of loading libraries has changed somehow…
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘jQuery error in custom theme after upgrading to 5.3’ is closed to new replies.