Introduce WP_List_Table::search_box(). See #15353

git-svn-id: https://develop.svn.wordpress.org/trunk@17006 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-12-16 20:45:10 +00:00
parent d56880f092
commit 0f40bb19cd
14 changed files with 43 additions and 87 deletions
+1 -9
View File
@@ -242,15 +242,7 @@ $_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated'
<form id="posts-filter" action="" method="get">
<?php if ( $wp_list_table->has_items() ) : ?>
<p class="search-box">
<label class="screen-reader-text" for="post-search-input"><?php echo $post_type_object->labels->search_items; ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
<?php submit_button( $post_type_object->labels->search_items, 'button', 'submit', false ); ?>
</p>
<?php endif; ?>
<?php $wp_list_table->search_box( $post_type_object->labels->search_items, 'post' ); ?>
<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" />
<input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" />