olefredrik / FoundationPress

FoundationPress is a WordPress starter theme based on Foundation 6 by Zurb
https://foundationpress.olefredrik.com
MIT License
2.7k stars 869 forks source link

Foundationpress + Dokan = Breaks JS #1274

Closed kLOsk closed 6 years ago

kLOsk commented 6 years ago

Hey, Trying to track down a bug. Basically when you run Foundationpress and activate Dokan Lite (https://wordpress.org/plugins/dokan-lite/) the site will trigger a JS Error when you visit the newly generated Dokan Dashboard:

Uncaught ReferenceError: dokan is not defined at resize_dummy_image (dokan.js?ver=1527552777:1918) at dokan.js?ver=1527552777:1926 at dokan.js?ver=1527552777:2036

I suspect Foundationpress loads jQuery after Dokan tries to load. Any advice how to fix this properly?

kLOsk commented 6 years ago

Ok, I tracked it further down and reverting back to original jquery in enqueue-scripts.php solves the problem.