[wp-trac] [WordPress Trac] #17394: Network Admin -> Sites -> Users not report correctly
WordPress Trac
wp-trac at lists.automattic.com
Thu May 12 21:32:34 UTC 2011
#17394: Network Admin -> Sites -> Users not report correctly
---------------------------+-----------------------
Reporter: whiteatom | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Network Admin | Version: 3.1.2
Severity: normal | Resolution:
Keywords: |
---------------------------+-----------------------
Changes (by whiteatom):
* status: closed => reopened
* resolution: invalid =>
Comment:
Well the roles have to come in somewhere because the filters are at the
top of the list, and they are displayed in the list it's self. When i add
a user to the sub-site with a role that is only in the sub-sute, but not
in the root, the user doesn't show up in the users list in the network
admin.
I have written a plugin that JUST adds the role and I can reproduce this
issue.
{{{
$editor = get_role('editor');
$ed_caps = $editor->capabilities;
add_role('testRole', 'Test', $ed_caps);
}}}
If I activate this plugin in the subsite, and assign a user the 'Test'
role in the sub-site Dashboard, all is well. When I go to view the users
from the Network Admin, that user is not displayed in the list. If I add
the plugin to the root site, they appear with the role 'Test', and 'Test'
role is displayed in the role filters above the user list.
I'd love to say it's unrelated to the core, but it has to be.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17394#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list