Opened 3 years ago
Closed 3 years ago
#14621 closed enhancement (fixed)
Add Filter: show_addsite_fields
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Multisite | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | axelseaa@… |
Description
Similar to what was added to the ms-users page (now network/users), I would like to add the following patch to add a filter that would allow the add site function to be hidden on the network/sites.php page.
I am the author of the LDAP authentication plugin, and I'll need to provide a specialized add site page that properly deals with ldap users not associated with the site yet.
Attachments (1)
Change History (8)
- Keywords ux-feedback added; has-patch removed
- Milestone changed from Awaiting Review to 3.1
- Owner set to nacin
- Status changed from new to accepted
- Type changed from feature request to enhancement
- Owner changed from nacin to PeteMall
- Status changed from accepted to assigned
I think this could now be done by removing the Sites -> Add New menu with remove_submenu_page().
- Cc axelseaa@… added
I'm confused how this can be done now with remove_submenu_page.
what I'm after is hiding the add site section at the bottom of the ms-sites.php page.
Trunk has changed here. This is no longer a form on network/sites but rather a standalone page, site-new.
I would like to change the manage_sites cap to create_sites. That should fix this ticket.

I think we should consider moving these fields to a new screen.
Also, it might be better to instead introduce an add_sites cap. We did this with manage_network_* caps as well. They aren't defined and super admins simply inherit them, but it allows for customization via the capabilities API.