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

git-svn-id: https://develop.svn.wordpress.org/trunk@16861 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-12-10 18:40:48 +00:00
parent acdd0eff66
commit 4d7afd30fa
1 changed files with 6 additions and 0 deletions

View File

@ -143,9 +143,13 @@ if ( ! current_user_can( 'switch_themes' ) ) {
exit;
}
?>
<h3><?php _e('Available Themes'); ?></h3>
<?php if ( $wp_list_table->has_items() ) : ?>
<form class="search-form filter-form" action="" method="get">
<p class="search-box">
<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(); ?>" />
@ -194,6 +198,8 @@ if ( ! current_user_can( 'switch_themes' ) ) {
</form>
<br class="clear" />
<?php endif; ?>
<?php $wp_list_table->display(); ?>
<br class="clear" />