Skip to content

Commit 4d7afd3

Browse files
author
scribu
committed
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
1 parent acdd0ef commit 4d7afd3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

wp-admin/themes.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,13 @@
143143
exit;
144144
}
145145
?>
146+
146147
<h3><?php _e('Available Themes'); ?></h3>
147148

149+
<?php if ( $wp_list_table->has_items() ) : ?>
150+
148151
<form class="search-form filter-form" action="" method="get">
152+
149153
<p class="search-box">
150154
<label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label>
151155
<input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />
@@ -194,6 +198,8 @@
194198
</form>
195199
<br class="clear" />
196200

201+
<?php endif; ?>
202+
197203
<?php $wp_list_table->display(); ?>
198204

199205
<br class="clear" />

0 commit comments

Comments
 (0)