WordPress.org

Make WordPress Core

Ticket #34549: 34549.4.diff

File 34549.4.diff, 853 bytes (added by westonruter, 5 years ago)
  • src/wp-includes/customize/class-wp-customize-themes-section.php

    diff --git src/wp-includes/customize/class-wp-customize-themes-section.php src/wp-includes/customize/class-wp-customize-themes-section.php
    index ecd7833..fb983a9 100644
    class WP_Customize_Themes_Section extends WP_Customize_Section { 
    4646                                }
    4747                                ?>
    4848
    49                                 <button type="button" class="button change-theme" tabindex="0"><?php _ex( 'Change', 'theme' ); ?></button>
     49                                <?php if ( count( $this->controls ) > 1 ) : ?>
     50                                        <button type="button" class="button change-theme" tabindex="0"><?php _ex( 'Change', 'theme' ); ?></button>
     51                                <?php endif; ?>
    5052                        </h3>
    5153                        <div class="customize-themes-panel control-panel-content themes-php">
    5254                                <h3 class="accordion-section-title customize-section-title">