Conflict: plugin breaks current user roles
-
Hi,
I am the author of WP-Clanwars plugin. My plugin’s permissions system relies on logged in user role however it’s empty on certain WordPress installations.
I managed to track down the problem and found that your plugin removes user role on a global
$current_userobject which creates a conflicts with other plugins and my plugin in particular.A quick search reveals that both Relic and CDN extensions of your plugin use
array_shiftwhich removes user role after it retrieves the value from the beginning of array.Here is a screenshot: https://www.dropbox.com/s/3wb96l9heuwef41/Screenshot%202015-06-18%2011.16.22.png?dl=0
I can confirm that disabling W3 Total Cache resolves the issue.
Please do not modify global objects and use
$current_user->roles[0];instead.I would appreciate if you could release an update anytime soon.
Thank you,
Andrej
The topic ‘Conflict: plugin breaks current user roles’ is closed to new replies.