Team: Incorrect use of WP_PLUGIN_URL

Q&ACategory: PluginTeam: Incorrect use of WP_PLUGIN_URL
Max asked 1 year ago

The team plugin (team.php) defines team_plugin_url using WP_PLUGIN_URL which does not take SSL into account and therefore breaks SSL pages. 
On line 78, instead of:

wp_enqueue_style('team_front_style', team_plugin_url.'css/style.css'); 

You can use: 

wp_enqueue_style('team_front_style', plugins_url( 'css/style.css', __FILE__ ));

Same for lines 99 and 109. Please refer to the Codex for correct usage:  http://codex.wordpress.org/Function_Reference/plugins_url

1 Answers
Hasan Staff answered 1 year ago

WOW, great thanks for the post,
We missed it, didn’t tried with SSl 🙂
 
Thanks a lot.