• Resolved rjvandoesburg

    (@rjvandoesburg)


    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.

    https://wordpress.org/plugins/wp-live-chat-support/

Viewing 1 replies (of 1 total)
  • Plugin Author WP-LiveChat

    (@wp-livechat)

    Hi there.

    Sorry for only getting back to you now.

    Agreed! So sorry about that! We will have this fixed in the next update we release.

    I’m not sure I understand what you mean by looking into the way we generate the locations for various requests? Would you mind explaining further?

Viewing 1 replies (of 1 total)

The topic ‘Change request’ is closed to new replies.