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
@@ -220,15 +220,7 @@ if ( isset($_REQUEST['approved']) || isset($_REQUEST['deleted']) || isset($_REQU
<form id="comments-form" action="" method="post">
<?php if ( $wp_list_table->has_items() ) : ?>
<p class="search-box">
<label class="screen-reader-text" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label>
<input type="text" id="comment-search-input" name="s" value="<?php _admin_search_query(); ?>" />
<?php submit_button( __( 'Search Comments' ), 'button', 'submit', false ); ?>
</p>
<?php endif; ?>
<?php $wp_list_table->search_box( __( 'Search Comments' ), 'comment' ); ?>
<?php if ( $post_id ) : ?>
<input type="hidden" name="p" value="<?php echo esc_attr( intval( $post_id ) ); ?>" />