[wp-hackers] current_user_can bug?

Ash Goodman ash at thinkinginvain.com
Mon Jun 21 10:00:49 UTC 2010


HI

I am currently building a site for a client where access to the blog
is restricted to paid members.

I am wrapping the loop in an if statement testing for user capability:
if ( current_user_can( 'custom_capability'  ) ) {

And this does not work

but when I do it for role:
if ( current_user_can( 'custom_role'  ) ) {

It does.

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.

Thanks!

Ash


More information about the wp-hackers mailing list