Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/14/2015 03:17:45 AM (5 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 (2.4-branch).

File:
1 edited

Legend:

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

    r10380 r10406  
    36323632 */
    36333633function bp_group_hidden_fields() {
    3634     if ( isset( $_REQUEST['s'] ) ) {
    3635         echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST['s'] ) . '" name="search_terms" />';
     3634    $query_arg = bp_core_get_component_search_query_arg( 'groups' );
     3635
     3636    if ( isset( $_REQUEST[ $query_arg ] ) ) {
     3637        echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST[ $query_arg ] ) . '" name="search_terms" />';
    36363638    }
    36373639
Note: See TracChangeset for help on using the changeset viewer.