Make WordPress Core

Opened 3 years ago

Last modified 10 months ago

#41441 new defect (bug)

Deleting a theme from a single site's Themes screen should not be allowed

Reported by: johnbillion Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Themes Keywords: needs-screenshots has-patch
Focuses: administration, multisite Cc:
PR Number:


With Multisite enabled, it's not possible to delete a plugin from the Plugins screen in individual sites' dashboards. The Delete link is removed.

The same should be true for themes. Currently, a Delete button is shown when a super admin views the Themes screen on an individual site.

Attachments (1)

41441.patch (845 bytes) - added by Mista-Flo 10 months ago.

Download all attachments as: .zip

Change History (3)

#1 @williampatton
11 months ago

  • Keywords needs-screenshots added

To me this seems like a good quality of life change and also a good idea to make behaviour between theme and plugin handling of this the same.

10 months ago

#2 @Mista-Flo
10 months ago

  • Keywords has-patch added; needs-patch removed

I have added a patch, it's quite simple, just check if we are in multisite or not to display the Delete button.

Also, I do not know if the screenshot is really needed since it would just be two screenshots, one with the button, the other without it.

Note: See TracTickets for help on using tickets.