Skip to:
Content

bbPress.org

Changeset 6622


Ignore:
Timestamp:
07/09/2017 05:16:57 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Templates: Add form template parts for searching specifically for topics & replies.

These have been in-use on BuddyPress.org/bbPress.org for years, and will be useful in user-profiles soon.

Also use bbp_search_terms() in form-search.php now that it's properly escaping output.

Location:
trunk/src/templates/default/bbpress
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/form-search.php

    r6258 r6622  
    1717        <label class="screen-reader-text hidden" for="bbp_search"><?php esc_html_e( 'Search for:', 'bbpress' ); ?></label>
    1818        <input type="hidden" name="action" value="bbp-search-request" />
    19         <input type="text" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" />
     19        <input type="text" value="<?php bbp_search_terms(); ?>" name="bbp_search" id="bbp_search" />
    2020        <input class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" />
    2121    </div>
Note: See TracChangeset for help on using the changeset viewer.