[Plugin: What Would Seth Godin Do] WWSGD 2.0 does not support alternate WP or plugin directories
-
WordPress has supported alternate plugin directories since 2.6 and has pretty much always supported keeping WP itself in a directory other than where the content is displayed (eg, content at site root, WP in /wp). WWSGD 2.0 does not support either of these.
When loading jquery.cookie.js, the plugin attempts to load it with (line 203):
<script type=”text/javascript” src=”<?php echo bloginfo(“url”); ?>/wp-content/plugins/what-would-seth-godin-do/jquery.cookie.js”></script>
Which results in a URL of:
https://example.com/wp-content/plugins/what-would-seth-godin-do/jquery.cookie.jsIn my particular case, that URL should look like:
https://example.com/content/plugins/what-would-seth-godin-do/jquery.cookie.jsBut some people may also need something like:
https://example.com/wp/wp-content/plugins/what-would-seth-godin-do/jquery.cookie.js… or any number of other paths.
The correct way to do this is to check the WP_CONTENT_URL and build your path using that value.
Optionally, an option to revert to the 1.x server-side method for this would be nice.
Thanks!
https://www.ads-software.com/extend/plugins/what-would-seth-godin-do/
- The topic ‘[Plugin: What Would Seth Godin Do] WWSGD 2.0 does not support alternate WP or plugin directories’ is closed to new replies.