Make WordPress Core

Opened 10 years ago

Closed 10 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
Priority: low Milestone: 4.8
Component: Role/Capability Version: 3.1
Severity: minor Keywords: has-patch has-unit-tests needs-codex
Cc: Focuses:

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 10 years ago.

Download all attachments as: .zip

Change History (4)

@johnbillion
10 years ago

#1 @johnbillion
10 years ago

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

#2 @johnbillion
10 years ago

  • Milestone Future Release → 4.8

#3 @johnbillion
10 years ago

  • Resolution → fixed
  • Status accepted → 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.