[wp-trac] [WordPress Trac] #12387: has_cap issue with Super Admins editing profile

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 26 16:28:58 UTC 2010


#12387: has_cap issue with Super Admins editing profile
----------------------------+-----------------------------------------------
 Reporter:  miklb           |       Owner:            
     Type:  defect (bug)    |      Status:  new       
 Priority:  normal          |   Milestone:  Unassigned
Component:  Administration  |     Version:  3.0       
 Severity:  normal          |    Keywords:            
----------------------------+-----------------------------------------------
 If a Super Admin is in the backend of a site they are not a user on, and
 tries to edit their own profile via Network->Users, you receive a `Call to
 a member function has_cap() on a non-object wp-admin/includes/user.php on
 line 80`

 This bug seems to date back in WPMU to at least 2.8.6 in my testing.

 I would expect a Super Admin to be able to edit their profile from
 anywhere, but if that's not the case, and they need to be a user of of the
 site they are in, then some more graceful error message I think would be
 appropriate.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12387>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list