Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#38326 closed defect (bug) (fixed)

The delete_site capability should not be granted on single site installs

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile 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 years ago.

Download all attachments as: .zip

Change History (4)

@johnbillion
8 years ago

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

  • Milestone changed from Future Release to 4.8

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