plugin_dir_url() instead of WP_PLUGIN_URL
-
hey! i’m not used to SVN, but I this is a little fix.
you should use plugin_dir_url() instead of WP_PLUGIN_URL, because of HTTPS stuff.This lines in your index.php,
{{{
wp_enqueue_style( ‘chosen.css’, plugin_dir_url(__FILE__) . ‘lib/chosen/chosen.min.css’);
wp_enqueue_script( ‘chosen.js’, plugin_dir_url(__FILE__) . ‘lib/chosen/chosen.jquery.min.js’, array(‘jquery’), ‘1.0.0’, true );
wp_enqueue_script(‘apply-chosen.js’, plugin_dir_url(__FILE__) . ‘js/apply-chosen.js’ );
}}}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘plugin_dir_url() instead of WP_PLUGIN_URL’ is closed to new replies.