Team: Incorrect use of WP_PLUGIN_URL

Q&ACategory: PluginTeam: Incorrect use of WP_PLUGIN_URL
Max asked 2 years 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:

1 Answers
Nur Hasan Staff answered 2 years ago

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