[wp-trac] [WordPress Trac] #20824: current_user_can() bug with Super Admin
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 4 10:55:53 UTC 2012
#20824: current_user_can() bug with Super Admin
--------------------------------+-----------------------------
Reporter: abdessamad idrissi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.3.2
Severity: normal | Keywords:
--------------------------------+-----------------------------
If the logged in user is a super admin this returns true;
{{{
if (current_user_can('contributor')) echo 'current user is a contributor';
}}}
Normally it should return false as it does for administrator, author,
editor and subscriber account types.
I spotted this while working in my localhost Multisite install then
figured it doesn't work in the live standalone version!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20824>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list