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

WordPress Trac noreply at wordpress.org
Tue Dec 15 01:15:31 UTC 2015


#35081: Missing Change Theme button when there are only two themes available
--------------------------+--------------------------
 Reporter:  igmoweb       |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  4.4.1
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  commit        |     Focuses:
--------------------------+--------------------------
Changes (by westonruter):

 * keywords:   => commit


Comment:

 @igmoweb you're right. In fact a bit lower in the theme it even indicates
 that `> 0` should have been used because it adds one to the number of
 controls:

 {{{#!php
 <span class="title-count theme-count"><?php echo count( $this->controls )
 + 1 /* Active theme */; ?></span>
 }}}

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


More information about the wp-trac mailing list