[wp-trac] [WordPress Trac] #36940: Break `manage_sites` capability up into more targeted caps

WordPress Trac noreply at wordpress.org
Thu Jun 2 20:58:16 UTC 2016


#36940: Break `manage_sites` capability up into more targeted caps
--------------------------------+------------------------------
 Reporter:  johnjamesjacoby     |       Owner:  johnjamesjacoby
     Type:  defect (bug)        |      Status:  assigned
 Priority:  normal              |   Milestone:  4.6
Component:  Networks and Sites  |     Version:  3.0
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:  multisite
--------------------------------+------------------------------
Changes (by jeremyfelt):

 * keywords:  has-patch 2nd-opinion => needs-patch
 * owner:   => johnjamesjacoby
 * status:  new => assigned


Comment:

 We had a good discussion covering this in Slack today.

 To paraphrase:

 * `manage_site_*` is a good name. `manage_` matches what we do with
 `manage_sites` already. `_site_` will never be used in the context of a
 single site as we'll use the object directly. (e.g. `manage_options`).
 * `manage_site_*` can be used to decide whether or not to show the "tabs".
 These capabilities are filterable by plugins.
 * At the top of each site, we'll need to check `manage_sites` and
 `manage_site_*` to retain max-compat with any plugins currently denying
 access to these pages.

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


More information about the wp-trac mailing list