[wp-hackers] WP_DEBUG notice with current_user_can()?

Mike Schinkel mikeschinkel at newclarity.net
Mon Apr 25 01:49:17 UTC 2011


On Apr 24, 2011, at 8:43 PM, Austin Matzko wrote:
> On Sun, Apr 24, 2011 at 6:50 PM, Mike Schinkel
> <mikeschinkel at newclarity.net> wrote:
>> current_user_can('edit_page');
> [snip]
>> Am I doing something wrong, or is this indeed a oversight in core that I should submit a trac ticket and patch to fix?
> 
> I think you want current_user_can('edit_pages'). 

Thanks, that was it.  Doh!

-Mike




More information about the wp-hackers mailing list