[wp-trac] [WordPress Trac] #13743: Ability to change default theme for network sites
WordPress Trac
noreply at wordpress.org
Tue Oct 4 09:57:14 UTC 2016
#13743: Ability to change default theme for network sites
------------------------------------+-----------------------------
Reporter: fuwaneko | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Themes | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: multisite
------------------------------------+-----------------------------
Changes (by Mista-Flo):
* keywords: needs-patch ui-feedback => has-patch dev-feedback
Comment:
This is a first patch to test this enhancement.
I have created a network option in the network settings : Default Theme.
It's a dropdown of all enabled themes in the network.
Then, in the wpmu_create_blog, if the default theme option is set, we
update the site option with the good theme.
The current issue is that this option is in prior of WP_DEFAULT_THEME
constant if it's set in the wp-config. How can we handle this ? Maybe a
test like that :
{{{
if ( ! in_array ( WP_DEFAULT_THEME, WP_Theme::$default_themes ) )
}}}
There are others things that need to be done in my opinion to have a
better UX :
-In Network Admin > Themes list : Add a state "default theme" for the
current default theme of the network.
-In Network Admin > Add site : Allow the user to select the desired theme
directly in the form.
What do you think ?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13743#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list