[wp-trac] [WordPress Trac] #9378: Removing cap 'manage_links' doesn't remove all link related capabilities

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 23 10:51:17 GMT 2009


#9378: Removing cap  'manage_links' doesn't remove all link related capabilities
----------------------------+-----------------------------------------------
 Reporter:  mastermind      |       Owner:  anonymous 
     Type:  defect (bug)    |      Status:  new       
 Priority:  normal          |   Milestone:  Unassigned
Component:  Administration  |     Version:  2.7.1     
 Severity:  normal          |    Keywords:            
----------------------------+-----------------------------------------------
 I encountered a problem in WordPress 2.7.1 {{{
 $wp_roles->remove_cap('editor', 'manage_links'); }}} doesn't remove that
 capability for the Editor role entirely, but it still displays the page
 "link categories", and you can perform actions on that page. This is
 because that page needs "manage_categories" instead of "manage_links".

 I would propose to either require the manage_links capability for this
 page, or introduce a new capability (something as manage_link_categories
 for example).

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


More information about the wp-trac mailing list