[wp-trac] [WordPress Trac] #43743: Terms list table should be full width when user cannot edit terms
WordPress Trac
noreply at wordpress.org
Thu Apr 12 08:52:45 UTC 2018
#43743: Terms list table should be full width when user cannot edit terms
-------------------------------------------------+-------------------------
Reporter: swissspidy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Taxonomy | Version:
Severity: minor | Resolution:
Keywords: has-screenshots needs-patch good- | Focuses:
first-bug ui-feedback | administration
-------------------------------------------------+-------------------------
Comment (by swissspidy):
> What scenario allows you to access this page but not add new terms? What
role do you need to have/setup to test this?
This happens when you have the `manage_terms` capability for that taxonomy
but not `edit_terms`.
In my case, the custom taxonomy was registered with caps like these:
{{{#!php
'capabilities' => [
'manage_terms' => 'manage_categories',
'edit_terms' => 'manage_business_areas',
'delete_terms' => 'manage_business_areas',
'assign_terms' => 'edit_posts',
],
}}}
Categories being a default taxonomy, I had the `manage_categories` caps
but since I haven't yet added the custom `manage_business_areas` cap to my
user / role, the demonstrated scenario happens.
You could easily test it by manually removing the `edit_categories`
capability using something like the Members plugin.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43743#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list