[wp-trac] [WordPress Trac] #13743: Ability to change default theme for network sites

WordPress Trac noreply at wordpress.org
Wed Oct 12 09:57:56 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 needs-testing  |     Focuses:  multisite
-------------------------------------+-----------------------------

Comment (by PieWP):

 Replying to [comment:18 Mista-Flo]:
 > I don't understand one thing in your patch. Did you forgot to assign
 again stylesheet and template var in case if we want to get the
 WP_DEFAULT_THEME or WP core theme.

 They are assigned on line 368, and only get overwritten in case the
 default theme option is set.


 Replying to [comment:18 Mista-Flo]:
 > And the if empty $theme could throw à warning if the $theme Var is not
 set, no ?

 {{{empty()}}} also checks for an {{{isset()}}}, you can insert non-
 existing vars into an {{{empty()}}} without generating strict notices.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/13743#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list