changing WP_PLUGIN_URL to plugins_url()
-
Good day,
May I suggest changing the use of WP_PLUGIN_URL to the function plugins_url() ? this would make it easier to use the built in filters for things such as forcing HTTPS scripts.
example, from:
$dir = WP_PLUGIN_URL . ‘/bp-labs/beakers/js/jquery.mentions’;
to:
$dir = plugins_url( ‘images/wordpress.png’ , __FILE__ ). ‘/beakers/js/jquery.mentions’;If an SVN patch is useful I can provide that.
Thanks,
Stéphane
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The forum ‘BP Labs’ is closed to new topics and replies.