[wp-trac] [WordPress Trac] #18461: adding a capability to a non-existing role gives warnings
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 24 19:55:33 UTC 2011
#18461: adding a capability to a non-existing role gives warnings
-----------------------------+------------------------------
Reporter: opajaap | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+------------------------------
Comment (by SergeyBiryukov):
[attachment:18461.2.patch] introduces `isset()` checks for `add_cap()` and
`remove_cap()`.
Don't think we should automatically remove an invalid role here. It can be
removed with `remove_role()`, in the same way it was added.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18461#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list