[wp-trac] [WordPress Trac] #16617: Bulk activate plugins: add capabilities with WP_Roles::add_cap() fails, while procedural add_cap() does not
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 23 05:19:09 UTC 2011
#16617: Bulk activate plugins: add capabilities with WP_Roles::add_cap() fails,
while procedural add_cap() does not
-----------------------------+-----------------------------
Reporter: jrfoell | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 3.0.5
Severity: normal | Keywords:
-----------------------------+-----------------------------
Attached two example plugins, one procedural, one object oriented. Both
add a test capability to the administrator role and check for it (printing
in the footer). If you activate them individually, they're both fine, if
you activate them both at the same time, the OO one fails.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16617>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list