WordPress.org

Make WordPress Core

Opened 11 months ago

Last modified 11 months ago

#39334 new enhancement

Network administrators should be able to enable themes on the site level

Reported by: Mista-Flo Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Themes Keywords: has-screenshots has-patch needs-testing
Focuses: multisite Cc:

Description

At the WordCamp USA, a suggested idea about themes in a multisite context was to allow network administrators (that have manage_network_themes cap) to network enable themes on the site level.

So I have made a patch to handle this. You can now activate a theme on a site on two actions (first network activate, then activate for the site) on the same page. Maybe it could be better to handle this in just one action, and just network activate the theme if it's not yet activated before site activation.

Attachments (3)

screenshot_39334_ManageThemes.png (721.7 KB) - added by Mista-Flo 11 months ago.
Screenshot with the patch
39334.1.patch (16.1 KB) - added by Mista-Flo 11 months ago.
First patch
39334.2.patch (3.1 KB) - added by Mista-Flo 11 months ago.
Patch 2 : Just handle this in one action

Download all attachments as: .zip

Change History (5)

@Mista-Flo
11 months ago

Screenshot with the patch

@Mista-Flo
11 months ago

First patch

#1 @Mista-Flo
11 months ago

  • Keywords has-screenshots has-patch needs-testing added

@Mista-Flo
11 months ago

Patch 2 : Just handle this in one action

#2 @Mista-Flo
11 months ago

The second patch handle the network activation just before the theme activation if the user can manage_network_themes, so it's handled under the hood, with no changes in the UI, and it's handled in just one action.

Don't know what's the best approach.

Note: See TracTickets for help on using tickets.