WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#14621 closed enhancement (fixed)

Add Filter: show_addsite_fields

Reported by: axelseaa Owned by: PeteMall
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: Multisite Keywords:
Focuses: Cc:

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)

show_addsite_fields.patch (703 bytes) - added by axelseaa 5 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 @nacin5 years ago

  • 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

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.

comment:2 @nacin5 years ago

  • Owner changed from nacin to PeteMall
  • Status changed from accepted to assigned

comment:3 @ryan5 years ago

I think this could now be done by removing the Sites -> Add New menu with remove_submenu_page().

comment:4 @jane5 years ago

  • Keywords ux-feedback removed

I'm with Ryan.

comment:5 @axelseaa5 years ago

  • 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.

comment:6 @nacin5 years ago

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.

comment:7 @nacin5 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [16103]) Use a create_users cap for Sites > Add New. fixes #14621.

Note: See TracTickets for help on using tickets.