Skip to:
Content

bbPress.org

Changeset 5899


Ignore:
Timestamp:
08/10/2015 07:28:16 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Tools: Use _admin_search_query(). See #2841.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/tools.php

    r5892 r5899  
    710710 */
    711711function bbp_admin_repair_list_search_form() {
    712 
    713         // Get the search string if there is one
    714         $search = ! empty( $_GET['s'] )
    715                 ? stripslashes( $_GET['s'] )
    716                 : ''; ?>
     712        ?>
    717713
    718714        <p class="search-box">
    719715                <label class="screen-reader-text" for="bbp-repair-search-input"><?php esc_html_e( 'Search Tools:', 'bbpress' ); ?></label>
    720                 <input type="search" id="bbp-repair-search-input" name="s" value="<?php echo esc_attr( $search ); ?>">
     716                <input type="search" id="bbp-repair-search-input" name="s" value="<?php _admin_search_query(); ?>">
    721717                <input type="submit" id="search-submit" class="button" value="<?php esc_html_e( 'Search Tools', 'bbpress' ); ?>">
    722718        </p>
Note: See TracChangeset for help on using the changeset viewer.