Hi master412160,
I’ve looked into that one extensively. There’s actually no bug in the plugin. (At least not from what I can tell…after a LOT of testing, researching, etc.) I’ve checked that particular notice with DEBUG on and nothing causes it to go away. I honestly think there must be some kind of strange quirk or bug with WordPress because the code that calls that function is literally copied and pasted from the WordPress Codex. In a few places in the plugin I have to verify user capabilities. The code used in the plugin is current_user_can('moderate_comments')
and current_user_can('manage_options')
and there hasn’t been reference to user levels as of a long time ago.
The example given in the WordPress Codex is :
if ( current_user_can('moderate_comments') ) {
echo 'The current user can moderate comments';
}
so you can see it’s exactly the same usage.
The codex entries for the function “current_user_can()” is:
https://codex.www.ads-software.com/Function_Reference/current_user_can
… and User Roles and Capabilities is:
https://codex.www.ads-software.com/Roles_and_Capabilities
I’ve pretty much memorized those pages inside and out, backwards and forwards, and still can’t see anything would cause it.
All I can do on this one is recommend not running a production site with DEBUG on. But that’s completely your call. ?? If you (or anyone else) happen to find a solution I don’t know about, I’m open to suggestions.
– Scott