Support » Requests and Feedback » WP_User->remove_role wrong — code change

  • Can someone _please_ update the code in capabilities.php from this

    if ( empty($this->roles[$role]) || (count($this->roles) <= 1) )

    to this:

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP_User->remove_role wrong — code change’ is closed to new replies.