WordPress.org

Make WordPress Core

Opened 18 months ago

Last modified 10 months ago

#39083 new enhancement

Introduce singular capabilities for managing individual themes

Reported by: johnbillion Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Themes Keywords: needs-patch, needs-unit-tests, granular-capabilities
Focuses: Cc:

Description

As we did in #35614 for taxonomy terms, singular capabilities should be introduced for switching, editing, deleting, and updating individual themes.

This would allow fine-grained cap checks such as current_user_can( 'switch_theme', $theme ) and current_user_can( 'delete_theme', $theme ).

Change History (1)

#1 @flixos90
10 months ago

  • Keywords granular-capabilities added

All of these are part of a larger goal.

Note: See TracTickets for help on using tickets.