[wp-trac] [WordPress Trac] #16363: current_user_can()

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 24 12:08:12 UTC 2011


#16363: current_user_can()
--------------------------+----------------------
 Reporter:  merianos      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Users         |     Version:  3.0.4
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 You're using it too early.

 You need to wait until the current user is set up, which means about the
 init hook.

 For more, try the support forums: http://wordpress.org/support/.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16363#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list