WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/16/2010 08:45:10 PM (11 years ago)
Author:
scribu
Message:

Introduce WP_List_Table::search_box(). See #15353

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r16990 r17006  
    243243<form id="posts-filter" action="" method="get">
    244244
    245 <?php if ( $wp_list_table->has_items() ) : ?>
    246 
    247 <p class="search-box">
    248     <label class="screen-reader-text" for="post-search-input"><?php echo $post_type_object->labels->search_items; ?>:</label>
    249     <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
    250     <?php submit_button( $post_type_object->labels->search_items, 'button', 'submit', false ); ?>
    251 </p>
    252 
    253 <?php endif; ?>
     245<?php $wp_list_table->search_box( $post_type_object->labels->search_items, 'post' ); ?>
    254246
    255247<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" />
Note: See TracChangeset for help on using the changeset viewer.