Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/14/2015 03:20:30 AM (9 years ago)
Author:
r-a-y
Message:

Use component search parameter instead of hardcoded 's' parameter.

This commit primarily fixes issues with extended profile links using the
older 's' parameter instead of the newer members search query argument.
See #5087.

Props kennibc.

See #6770 (trunk).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r10383 r10407  
    36633663 */
    36643664function bp_group_hidden_fields() {
    3665     if ( isset( $_REQUEST['s'] ) ) {
    3666         echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST['s'] ) . '" name="search_terms" />';
     3665    $query_arg = bp_core_get_component_search_query_arg( 'groups' );
     3666
     3667    if ( isset( $_REQUEST[ $query_arg ] ) ) {
     3668        echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST[ $query_arg ] ) . '" name="search_terms" />';
    36673669    }
    36683670
Note: See TracChangeset for help on using the changeset viewer.