Don't show search box if there are no themes available. See #15353

git-svn-id: http://svn.automattic.com/wordpress/trunk@16861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-12-10 18:40:48 +00:00
parent c6c9ce82b3
commit 052500b76f
1 changed files with 6 additions and 0 deletions

View File

@ -143,9 +143,13 @@ if ( ! current_user_can( 'switch_themes' ) ) {
exit; exit;
} }
?> ?>
<h3><?php _e('Available Themes'); ?></h3> <h3><?php _e('Available Themes'); ?></h3>
<?php if ( $wp_list_table->has_items() ) : ?>
<form class="search-form filter-form" action="" method="get"> <form class="search-form filter-form" action="" method="get">
<p class="search-box"> <p class="search-box">
<label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label> <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label>
<input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" /> <input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />
@ -194,6 +198,8 @@ if ( ! current_user_can( 'switch_themes' ) ) {
</form> </form>
<br class="clear" /> <br class="clear" />
<?php endif; ?>
<?php $wp_list_table->display(); ?> <?php $wp_list_table->display(); ?>
<br class="clear" /> <br class="clear" />