[wp-hackers] current_user_can bug?

Dion Hulse (dd32) wordpress at dd32.id.au
Mon Jun 21 10:05:27 UTC 2010


On Mon, 21 Jun 2010 20:00:49 +1000, Ash Goodman <ash at thinkinginvain.com>  
wrote:
> Is there something I am missing or is this a bug? According to my
> understanding of the documentation it should take role or capability
> equally.

Both should work, I'd be triple checking that the capability is actually  
being applied to the role.

Throw this in there beforehand:

$role = get_role('custom_role');
var_dump($role->capabilities);

-- Dion Hulse / dd32
Contact:
  e: contact at dd32.id.au
  Web: http://dd32.id.au/


More information about the wp-hackers mailing list