mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-02 00:00:15 +00:00
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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user