Opened 8 years ago
Closed 7 years ago
#38053 closed defect (bug) (duplicate)
register_taxonomy capabilities not taken into account with metabox
Reported by: | BjornW | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6.1 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
When registering a new custom taxonomy with register_taxonomy() I use the following capabilities array in the registration:
<?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.
Attachments (3)
Change History (7)
This ticket was mentioned in Slack in #core by bjornw. View the logs.
8 years ago
This ticket was mentioned in Slack in #core by bjornw. View the logs.
8 years ago
Note: See
TracTickets for help on using
tickets.
Annotated screenshot logged in with role admin