Make WordPress Core

Changeset 35943


Ignore:
Timestamp:
12/15/2015 01:20:49 AM (8 years ago)
Author:
westonruter
Message:

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

Fixes defect introduced in [35535].

Props igmoweb.
See #34549.
Fixes #35081.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-themes-section.php

    r35535 r35943  
    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; ?>
Note: See TracChangeset for help on using the changeset viewer.