[wp-trac] [WordPress Trac] #36368: Add `access_admin` capability

WordPress Trac noreply at wordpress.org
Fri Sep 16 10:41:33 UTC 2016


#36368: Add `access_admin` capability
-----------------------------+------------------------------
 Reporter:  krogsgard        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Users            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |     Focuses:  administration
-----------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => dev-feedback


Comment:

 When was the last time a new primitive capability was introduced? The last
 few that were introduced (`customize`, `delete_site`, `upload_plugins`,
 `upload_themes`) are all meta capabilities with corresponding mapping in
 `map_meta_cap()`.

 The reason I ask is because backwards compatibility with custom roles is
 tough. If an `access_admin` cap is introduced, should core add that cap to
 all roles or just the default roles? What about existing plugins that add
 a new role with a limited set of caps - if the plugin was activated after
 this new cap is introduced then a user with that role would not have the
 `access_admin` cap.

 It looks like we're kind of stuck with our existing primitive caps and can
 only ever introduce new meta caps if the cap relates to existing
 functionality. This is what I'm doing in #35614.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36368#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list