[wp-trac] [WordPress Trac] #35081: Missing Change Theme button when there are only two themes available

WordPress Trac noreply at wordpress.org
Mon Dec 14 20:27:11 UTC 2015


#35081: Missing Change Theme button when there are only two themes available
--------------------------+-----------------------------
 Reporter:  igmoweb       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When you have two themes in your installation, Change Theme button in
 Customizer is missing. I guess this is not a expected behavior, isn't it?

 My thoughts:

 It looks like in class-wp-customize-themes-section.php, line no. 49:

 {{{
 if ( count( $this->controls ) > 1 )
 }}}

 $this->controls does not include the current theme in the list. So there
 are two easy approaches for this:

 - Make the condition "> 0"
 - Add the current theme as a control in class-wp-customize-manager.php

 Bear in mind that in a multisite, you want to display the network
 activated Themes, not all the themes, just in case something extra is
 needed for this fix in a Multisite

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35081>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list