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:
parent
acdd0eff66
commit
4d7afd30fa
|
@ -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" />
|
||||||
|
|
Loading…
Reference in New Issue