[wp-trac] [WordPress Trac] #39083: Introduce singular capabilities for managing individual themes
WordPress Trac
noreply at wordpress.org
Sun Dec 4 22:12:27 UTC 2016
#39083: Introduce singular capabilities for managing individual themes
-------------------------+------------------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Themes | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: |
-------------------------+------------------------------------------
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
)`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39083>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list