Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#38326 closed defect (bug) (fixed)

The delete_site capability should not be granted on single site installs

Reported by: johnbillion Owned by: johnbillion
Milestone: 4.8 Priority: low
Severity: minor Version: 3.1
Component: Role/Capability Keywords: has-patch has-unit-tests needs-codex
Focuses: Cc:


The delete_site capability only applies to Multisite, so it shouldn't be granted to any role on single site installs.

Attachments (1)

38326.patch (1.2 KB) - added by johnbillion 4 years ago.

Download all attachments as: .zip

Change History (4)

4 years ago

#1 @johnbillion
4 years ago

  • Keywords has-patch has-unit-tests needs-codex added; needs-patch removed
  • Owner set to johnbillion
  • Status changed from new to accepted

#2 @johnbillion
4 years ago

  • Milestone changed from Future Release to 4.8

#3 @johnbillion
4 years ago

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

In 39494:

Role/Capability: Don't assign the delete_site capability to anyone on single site installs.

This capability is not relevant on single site installs; it only applies to deleting a site on a multisite installation.

Fixes #38326

Note: See TracTickets for help on using tickets.