[wp-trac] [WordPress Trac] #38053: register_taxonomy capabilities not taken into account with metabox

WordPress Trac noreply at wordpress.org
Wed Sep 14 10:47:37 UTC 2016


#38053: register_taxonomy capabilities not taken into account with metabox
--------------------------+-----------------------------
 Reporter:  BjornW        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When registering a new custom taxonomy with register_taxonomy() I use the
 following capabilities array in the registration:

 {{{#!php
 <?php
 'capabilities' => array(
   'manage_terms'  => 'activate_plugins',
   'edit_terms'    => 'activate_plugins',
   'delete_terms'  => 'activate_plugins',
   'assign_terms'  => 'edit_posts'
 ),
 }}}

 Users without the capability 'activate_plugins' are not shown the custom
 taxonomy in the main wp-admin interface. However they are still able to
 add new terms in the metabox shown in the custom post type connected with
 this custom taxonomy, which is not what I'd expect. I'd expect users to be
 able to assign existing terms, but not to add any new terms.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38053>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list