[wp-testers] 2.0.2 Release Candidate 1

Ryan Boren ryan at boren.nu
Tue Mar 7 21:18:11 GMT 2006


Kirk Steffensen wrote:
> Sorry.  False alarm.  I was getting a "Call to a non-member function error"
> on a call to $wp_roles->add_cap().  After deactivating the plugin, clearing
> the plugin options, and reactivating it, WPG2 works.
> 
> I didn't get a Database update message when I installed 2.0.2.  I assume the
> DB didn't need updated and this is normal.  That being the case, it's
> curious that WPG2 didn't come up right the first time.  Can't recreate it,
> because it's up and running now.

The database hasn't changed so there is no need to run the upgrade.

The only place we call $wp_roles->add_cap() is in WP_Role:add_cap() and 
that function global $wp_roles properly.  Plugins shouldn't be calling 
$wp_roles->add_cap().  They shouldn't really be using $wp_roles directly 
at all.

Ryan


More information about the wp-testers mailing list