Support » Plugin: Members » Why does Members show Subscriber having 2 capabilities?
4 years, 4 months ago
Why does Members show Subscriber having 2 capabilities?
4 years ago
I had the same question.
This has been previously answered in
For Subscriber the answer is that on the Roles page the code counts the number of elements in $role_object->capabilities.
[name] => subscriber
[capabilities] => Array
[read] => 1
[level_0] => 1
BUT when the capabilities are displayed on Edit Role the list is matched against the result from members_get_capabilities()
which, by default, strips out the “level_n” roles.
Perhaps the code to remove old levels should be run against $role_object-> capabilities before performing the count.