Support » Plugin: bxSlider integration for WordPress » Improper use of WP_PLUGIN_URL constant

  • In bxslider-integration.php, you have the following defined:

    define( ‘BXSG_PLUGIN_URL’, WP_PLUGIN_URL . ‘/bxslider-integration/’ );

    Using WP_PLUGIN_URL is bad practice. It doesn’t take into account SSL sites (which mine is). Please see: http://codex.wordpress.org/Determining_Plugin_and_Content_Directories

    “WordPress makes use of the following constants when determining the path to the content and plugin directories. These should not be used directly by plugins or themes, but are listed here for completeness.”

    You should be using plugins_url() instead.

  • The topic ‘Improper use of WP_PLUGIN_URL constant’ is closed to new replies.