Make WordPress Core


Ignore:
Timestamp:
12/23/2015 01:50:27 AM (11 years ago)
Author:
dd32
Message:

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

Fixes defect introduced in [35535].

Merges [35943] to the 4.4 branch.
Props igmoweb.
See #34549.
Fixes #35081.

Location:
branches/4.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

  • branches/4.4/src/wp-includes/customize/class-wp-customize-themes-section.php

    r35535 r36065  
    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.