Enqueue file breaks on bedrock installation
-
Hi!
I have a bedrock based project and the way you enqueue your js is wrong even for regular WP installation and is breaking on bedrock WP setup.
In your inclide_docxpresso_js() function you have
wp_enqueue_script('docxpresso_button', '/wp-content/plugins/docxpresso/docxpresso.js', array('jquery'), '2.0', true);
You should have
wp_enqueue_script('docxpresso_button', plugins_url( '/docxpresso.js', __FILE__ ), array('jquery'), '2.0', true);
Ref: Plugin handbook: https://developer.www.ads-software.com/plugins/javascript/enqueuing/
Can you please fix this and release a new fix version (2.6.1)? Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Enqueue file breaks on bedrock installation’ is closed to new replies.