@since: bbPress (r4579) If search terms are supplied, those are used. Otherwise check the search rewrite id query var.
Description
bbp_get_search_terms()

Get the search terms

Source: bp-forums/search/template.php:356