mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
+7
-3
@@ -202,16 +202,20 @@ if ( !empty($message) ) { ?>
|
||||
|
||||
<?php $wp_list_table->views(); ?>
|
||||
|
||||
<form class="search-form" action="" method="get">
|
||||
<form id="posts-filter" action="" method="post">
|
||||
|
||||
<?php if ( $wp_list_table->has_items() ) : ?>
|
||||
|
||||
<p class="search-box">
|
||||
<label class="screen-reader-text" for="media-search-input"><?php _e( 'Search Media' ); ?>:</label>
|
||||
<input type="text" id="media-search-input" name="s" value="<?php the_search_query(); ?>" />
|
||||
<?php submit_button( __( 'Search Media' ), 'button', 'submit', false ); ?>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<form id="posts-filter" action="" method="post">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $wp_list_table->display(); ?>
|
||||
|
||||
<div id="ajax-response"></div>
|
||||
<?php find_posts_div(); ?>
|
||||
<br class="clear" />
|
||||
|
||||
Reference in New Issue
Block a user