Customize: Hide "Change" button in themes section if there are fewer than two available themes.
Props danielbachhuber, westonruter. Fixes #34549. Built from https://develop.svn.wordpress.org/trunk@35535 git-svn-id: http://core.svn.wordpress.org/trunk@35499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e0ac4e4d05
commit
1a55cbe59d
|
@ -46,7 +46,9 @@ class WP_Customize_Themes_Section extends WP_Customize_Section {
|
|||
}
|
||||
?>
|
||||
|
||||
<?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">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta3-35534';
|
||||
$wp_version = '4.4-beta3-35535';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue