wp-content url hardcoded
-
Hi there,
My problem was that your plugin’s javascript didn’t worked but content was nevertheless displayed – all of it at once, which looked ugly. Figured out it was because of hardcoded “/wp-content/plugins/” path into upzSlider.php all over the place, and I don’t have wp-content as my default content folder (for security reasons). Resolved it by rewritting your code parts:
wp_enqueue_script(‘example’, get_bloginfo(‘wpurl’) . ‘/wp-content/plugins/unpointzero-slider/example/blabla.js’);
to look like this:
wp_enqueue_script(‘example’, plugins_url() . ‘/unpointzero-slider/example/blabla.js’);Hope you will recode it in next update so it doesn’t broke ??
Matija
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘wp-content url hardcoded’ is closed to new replies.