WordPress.org

Make WordPress Core

Changeset 35535


Ignore:
Timestamp:
11/05/2015 01:25:54 AM (4 years ago)
Author:
westonruter
Message:

Customize: Hide "Change" button in themes section if there are fewer than two available themes.

Props danielbachhuber, westonruter.
Fixes #34549.

File:
1 edited

Legend:

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

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