WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 7 months 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:

Description

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 8 months ago.

Download all attachments as: .zip

Change History (4)

@johnbillion
8 months ago

#1 @johnbillion
8 months 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
7 months ago

  • Milestone changed from Future Release to 4.8

#3 @johnbillion
7 months 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.