Can someone _please_ update the code in capabilities.php from this
if ( empty($this->roles[$role]) || (count($this->roles) <= 1) )
if ( empty($this->caps[$role]) || (count($this->caps) <= 1) )
It’s on line 202 of version 2.6.2 capabilities.php. This issue has been around for a very long time and it’s stopping me from removing a role from a user.
Can someone take a few moments and update this one line of code?
- The topic ‘WP_User->remove_role wrong — code change’ is closed to new replies.