[wp-trac] [WordPress Trac] #12387: has_cap issue with Super Admins editing profile
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 27 05:32:13 UTC 2010
#12387: has_cap issue with Super Admins editing profile
----------------------------+-----------------------------------------------
Reporter: miklb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Administration | Version: 3.0
Severity: normal | Keywords: has-patch needs-testing
----------------------------+-----------------------------------------------
Changes (by dd32):
* keywords: => has-patch needs-testing
* milestone: Unassigned => 3.0
Comment:
L80: {{{$wp_roles->role_objects[$new_role]->has_cap()}}} would also fail
on PHP4 as object chaining is not supported.
My MS environment is down right now, But i've attached a (untested) patch,
If someone could test this under PHP4 and the affected environment
mentioned, that'd be appreciated
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12387#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list