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

git-svn-id: https://develop.svn.wordpress.org/trunk@16868 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-12-10 20:22:34 +00:00
parent aa21762023
commit 3f5f212ffb
6 changed files with 42 additions and 18 deletions

View File

@@ -353,15 +353,18 @@ if ( $usersearch )
<?php $wp_list_table->views(); ?>
<form class="search-form" action="" method="get">
<form action="" method="post">
<?php if ( $wp_list_table->has_items() ) : ?>
<p class="search-box">
<label class="screen-reader-text" for="user-search-input"><?php _e( 'Search Users' ); ?>:</label>
<input type="text" id="user-search-input" name="s" value="<?php echo esc_attr($usersearch); ?>" />
<?php submit_button( __( 'Search Users' ), 'button', 'submit', false ); ?>
</p>
</form>
<form id="posts-filter" action="" method="post">
<?php endif; ?>
<?php $wp_list_table->display(); ?>
</form>