[wp-trac] [WordPress Trac] #12035: Allow taxonomy privledges to be handled independently of categories

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 26 11:31:14 UTC 2010


#12035: Allow taxonomy privledges to be handled independently of categories
-----------------------------+----------------------------------------------
 Reporter:  dd32             |       Owner:     
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  3.0
Component:  Role/Capability  |     Version:  3.0
 Severity:  normal           |    Keywords:     
-----------------------------+----------------------------------------------
 At present, all taxonomy-related actions are based off the
 {{{manage_categories}}} capability.

 This means that plugins are not able to restrict who can modify/delete
 their taxonomies terms.

 In the same light, This also restricts site managers from only allowing
 certain users(roles) to handle specific functions.

 I'm commiting a first-scrape at it, Things that need to be looked into:
  * MultiSite integration
  * Tag-style taxonomy additions (ie. Allowed to manage(add to post object)
 but not add)
  * viewing of the post page should allow the user to see the current
 terms, but not change them (Current code will hide them entirely)
  * Ensure that when a user modifies an existing post, terms are not lost.

 The caps are currently changed by passing one of the following args to
 register_taxonomy, empty() or not-set will result in
 {{{manage_categories}}} being used.
  * {{{manage_cap}}} - Assigning the Term to a Post object
  * {{{edit_cap}}} - Addition & Modification of a Term
  * {{{delete_cap}}} - Deletion of a Term

 Note, That this doesnt affect plugins, plugins still have free roam over
 the taxonomy API regardless of the user logged in.

 Related: #11838

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


More information about the wp-trac mailing list