[wp-trac] [WordPress Trac] #15341: current_user_can needs to be more defensive

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 8 17:21:43 UTC 2010


#15341: current_user_can needs to be more defensive
------------------------------+---------------------------------------------
 Reporter:  OS1               |       Owner:                   
     Type:  defect (bug)      |      Status:  new              
 Priority:  normal            |   Milestone:  Awaiting Review  
Component:  Warnings/Notices  |     Version:  3.0.1            
 Severity:  normal            |    Keywords:  reporter-feedback
------------------------------+---------------------------------------------
Changes (by westi):

 * cc: westi (added)
  * keywords:  current_user_can First argument is expected to be a valid
               callback => reporter-feedback
  * component:  General => Warnings/Notices


Comment:

 Where is the piece of code which calls current_user_can in this scenario?

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


More information about the wp-trac mailing list