[wp-trac] [WordPress Trac] #15800: Adding tabs to the "Edit Site"-pages in Network Admin

WordPress Trac noreply at wordpress.org
Tue Apr 12 06:45:49 UTC 2016


#15800: Adding tabs to the "Edit Site"-pages in Network Admin
-------------------------------------+-------------------------------------
 Reporter:  PuffyThePirateBoy        |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Networks and Sites       |     Version:  3.1
 Severity:  minor                    |  Resolution:
 Keywords:  has-patch early needs-   |     Focuses:  accessibility,
  testing                            |  administration, multisite
-------------------------------------+-------------------------------------
Changes (by jeremyfelt):

 * keywords:  has-patch dev-feedback early => has-patch early needs-testing


Comment:

 I've only had time to give this a read-through, but a general +1 on where
 things are going. :)

 A couple thoughts:

 * Adding more specific capability checks makes sense. I'd probably prefer
 to introduce that granularity in another ticket as it will involve
 accounting for the current `manage_sites` capability in a back-compat way.
 * I do wonder if `network_edit_site_tabs` is the right place to loop
 through the capabilities. Some of that could instead be handled by plugins
 as they choose whether or not to add a tab to the filter.
 * What would it look like to exclude the core provided tabs from the
 `network_edit_site_tabs` filter? Once more granular capabilities are
 available, tabs could be hidden on a cap check. This would align more with
 the result of visiting each of these pages directly.
 * I'm not sure about the before/after HTML args for the tab output.

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


More information about the wp-trac mailing list