Customize: Hide "Change" button in themes section if there are fewer than two available themes.
Props danielbachhuber, westonruter. Fixes #34549. git-svn-id: https://develop.svn.wordpress.org/trunk@35535 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
228aeddd1f
commit
9711093ff8
@ -46,7 +46,9 @@ class WP_Customize_Themes_Section extends WP_Customize_Section {
|
||||
}
|
||||
?>
|
||||
|
||||
<button type="button" class="button change-theme" tabindex="0"><?php _ex( 'Change', 'theme' ); ?></button>
|
||||
<?php if ( count( $this->controls ) > 1 ) : ?>
|
||||
<button type="button" class="button change-theme" tabindex="0"><?php _ex( 'Change', 'theme' ); ?></button>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
<div class="customize-themes-panel control-panel-content themes-php">
|
||||
<h3 class="accordion-section-title customize-section-title">
|
||||
|
Loading…
Reference in New Issue
Block a user