[wp-trac] Re: [WordPress Trac] #2526: WP DB Backup plugin is using $user_level instead of capabilities

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 27 08:09:07 GMT 2006


#2526: WP DB Backup plugin is using $user_level instead of capabilities
----------------------------+-----------------------------------------------
       Id:  2526            |      Status:  assigned                
Component:  Administration  |    Modified:  Mon Mar 27 08:09:07 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.0.1                   
    Owner:  robmiller       |    Reporter:  markjaquith             
----------------------------+-----------------------------------------------
Comment (by westi):

 rob you don't need to do that. add_*_page() already support being called
 with caps.

 The menus are stripped down in wp-admin/menu.php which calls
 current_user_can itself - this calls has_cap on an instance of WP_User
 which checks to see if you passed a number and if so converts it to a
 "level" cap.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2526>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list