cmb2.js with wrong URL in capistrano enviroments
-
Hi,
Within capistrano deployed enviroments the cmb2_utils()->url( “js/cmb2{$min}.js” ) (line 74 in tc-team-members/lib/metaboxes/includes/CMB2_JS.php and more) returns a path instead of URL (because of the symlinks capistrano makes).
I think you should use :
wp_enqueue_script( self::$handle, plugins_url(“/tc-team-members/lib/metaboxes/js/cmb2{$min}.js”), $dependencies, CMB2_VERSION, true );
(works for me anyways)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘cmb2.js with wrong URL in capistrano enviroments’ is closed to new replies.