Plugin breaks with moved contents folder (solution inside)
-
Hi
I’m using a wordpress setup with a moved content folder.
Like this: https://github.com/markjaquith/WordPress-Skeleton
Your plugin’s javascript doesn’t load in this setup.The problem is in
orgSeries-admin.php
line 93
replace:
wp_enqueue_script('orgseries_scripts','/'.PLUGINDIR.'/'.SERIES_DIR.'/js/orgseries_scripts.js',array('jquery', 'thickbox'));
With:
wp_enqueue_script('orgseries_scripts', WP_PLUGIN_URL . '/'.SERIES_DIR.'/js/orgseries_scripts.js',array('jquery', 'thickbox'));
BTW if you want to use the 3.5 media uploader fot the icon’s contact me.
I could help with that, I already got it running in my plugin.
- The topic ‘Plugin breaks with moved contents folder (solution inside)’ is closed to new replies.