WP 5.8 | Unexpected token ‘)’ | theme.js
-
Hey all,
I just updated my website to WP 5.8. In the process, I noticed a new error in the console that didn’t appear there before.
“Uncaught SyntaxError: Unexpected token ‘)'” is the name of the error and it’s supposed to be in “/wp-content/themes/onepress/assets/js/theme.js”.
Apparently the code there is not assembled correctly after the update to WordPress 5.8.Here the code which is objected:
“[…] onepress_gallery_init($(“.gallery-content”));if(“undefined”!==typeof wp&&wp.customize&&wp.customize.selectiveRefresh){wp.customize.selectiveRefresh. bind(“partial-content-rendered”,function(placement){if(placement.partial.id==”section-gallery”){onepress_gallery_init(placement.container.find(“.gallery-content”));$(window).resize()}})}}) […]”
Apparently the closed brackets trigger the error in wordpress 5.8.
Maybe I someone else noticed the error.
Best regards
itsebiGaming
The topic ‘WP 5.8 | Unexpected token ‘)’ | theme.js’ is closed to new replies.
