[wp-trac] [WordPress Trac] #13074: Distinguish between user deletion and removal in users.php
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 25 23:23:53 UTC 2010
#13074: Distinguish between user deletion and removal in users.php
--------------------------+-------------------------------------------------
Reporter: ryan | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.0
Component: Users | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-------------------------------------------------
Comment(by TheDeadMedic):
@layotte, I was just about to submit a ticket concerning this exact issue.
I believe the line;
{{{
$caps[] = $cap;
}}}
should in fact be;
{{{
$caps[] = 'edit_users';
}}}
The problem lies in having skipped the {{{break}}} from the 'edit_user'
block, hence falling through to the 'edit_users' block, but then failing
the {{{if}}} in the 'edit_users' block, thereby adding a non-existent(?)
cap 'edit_user' (note singular) to the {{{$caps}}} array.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13074#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list