WordPress.org

Make WordPress Core

Ticket #35081: 35081.diff

File 35081.diff, 653 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 fb983a9..9674b64 100644
    class WP_Customize_Themes_Section extends WP_Customize_Section { 
    4646                                }
    4747                                ?>
    4848
    49                                 <?php if ( count( $this->controls ) > 1 ) : ?>
     49                                <?php if ( count( $this->controls ) > 0 ) : ?>
    5050                                        <button type="button" class="button change-theme" tabindex="0"><?php _ex( 'Change', 'theme' ); ?></button>
    5151                                <?php endif; ?>
    5252                        </h3>