[wp-trac] [WordPress Trac] #33975: Improve capabilities management when registering custom taxonomy
WordPress Trac
noreply at wordpress.org
Wed Sep 23 12:08:41 UTC 2015
#33975: Improve capabilities management when registering custom taxonomy
------------------------------------------+------------------------------
Reporter: slaFFik | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+------------------------------
Changes (by johnbillion):
* keywords: => needs-patch needs-unit-tests
Old description:
> Currently we have such caps when using `register_taxonomy()`
> [https://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments
> codex]:
> 'manage_terms' - 'manage_categories'
> 'edit_terms' - 'manage_categories'
> 'delete_terms' - 'manage_categories'
> 'assign_terms' - 'edit_posts'
>
> IMO, setting `manage_terms` to false block access to page (cheating
> message),
> setting `edit_terms` to false displays this message: "You are not allowed
> to edit this item.", which is very odd. Editing means editing, So I
> should not be able to use Quick Edit and Edit links (they should be
> hidden).
>
> Also, I propose to add a `create_terms` capability maping - for
> displaying the add term form and giving ability to create them,
> separately from editing/deleting.
>
> Related: #22511
New description:
Currently we have such caps when using `register_taxonomy()`
[https://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments
codex]:
{{{
'manage_terms' - 'manage_categories'
'edit_terms' - 'manage_categories'
'delete_terms' - 'manage_categories'
'assign_terms' - 'edit_posts'
}}}
IMO, setting `manage_terms` to false block access to page (cheating
message),
setting `edit_terms` to false displays this message: "You are not allowed
to edit this item.", which is very odd. Editing means editing, So I should
not be able to use Quick Edit and Edit links (they should be hidden).
Also, I propose to add a `create_terms` capability maping - for displaying
the add term form and giving ability to create them, separately from
editing/deleting.
Related: #22511
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33975#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list