[wp-trac] [WordPress Trac] #10833: Cannot give users 'No role for this blog'
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 16 08:29:25 UTC 2010
#10833: Cannot give users 'No role for this blog'
--------------------------+-------------------------------------------------
Reporter: TheDeadMedic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Users | Version: 2.8.4
Severity: minor | Keywords: needs-patch
--------------------------+-------------------------------------------------
Comment(by nacin):
Adding to this, if you share user/usermeta tables between installs, users
in the second install are all defaulted to "No role for this blog". But if
you give someone a role, you can't revoke it. Kind of annoying. MU/MS also
exposes this IIRC.
Simple fix for the notice. {{{ if ( !$editable_roles[$new_role] ) }}}
should become:
{{{
if ( !isset($editable_roles[$new_role]) || !$editable_roles[$new_role] )
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10833#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list