Error in wcpb.js load
-
Hi,
The main thing, excuse my english.
I’ve seen an error in the code. When loading the file wcpb.js in my case was a mistake because the file is loaded before jQuery. To fix this, simply you have to change a parameter in wp_register_script:
File: wcpb.php:41
Old:
wp_register_script (‘wcpb-script’, $ this-> settings [‘dir’] “assets / js / wcpb.js”, ‘jquery’, $ this-> settings [‘version’].);Corrected:
wp_register_script (‘wcpb-script’, $ this-> settings [‘dir’] “assets / js / wcpb.js”, array (‘jquery’), $ this-> settings [‘version’].);In this way it has worked properly. I hope someone has the same problem you can do some good.
The topic ‘Error in wcpb.js load’ is closed to new replies.