Customize: Ensure that "Change" button appears when there are only 2 themes.

Fixes defect introduced in [35535].

Merges [35943] to the 4.4 branch.
Props igmoweb.
See #34549.
Fixes #35081.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36065 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2015-12-23 01:50:27 +00:00
parent 546ece8154
commit 3b46a8a016

View File

@ -46,7 +46,7 @@ class WP_Customize_Themes_Section extends WP_Customize_Section {
} }
?> ?>
<?php if ( count( $this->controls ) > 1 ) : ?> <?php if ( count( $this->controls ) > 0 ) : ?>
<button type="button" class="button change-theme" tabindex="0"><?php _ex( 'Change', 'theme' ); ?></button> <button type="button" class="button change-theme" tabindex="0"><?php _ex( 'Change', 'theme' ); ?></button>
<?php endif; ?> <?php endif; ?>
</h3> </h3>