Change request
-
Hello,
I’ve just tried installing your plugin and am running into some trouble. After some digging I found the following:
$wplc_basic_plugin_url = get_option('siteurl') . "/wp-content/plugins/wp-live-chat-support/";(wp-live-chat-support.php:259)Now this isn’t the most optimal way to get the plugin url because as it happens, we installed WordPress in a sub directory and that changes our site url (home url is unaffected). so now it tries to get files from domain.ext/wp-install-folder/wp-content/plugins/wp-live-chat-support
Another no-no is hardcoding the wp-content folder (some of our sites have that on a different location as well).
To prevent these mistakes WordPress added functions to get the correct locations, for plugins: it would be
plugin_dir_url( __FILE__ )and for content:content_url()see https://codex.wordpress.org/Determining_Plugin_and_Content_Directories for more information.
Anyhow, getting back to my request. I would like to ask you to look into the way you generate the locations for various request so more people can be happy and use your plugin with their wacky way of using WordPress.
The topic ‘Change request’ is closed to new replies.