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-xprofile/bp-xprofile-filters.php

    r10254 r10406  
    368368                // Less than 5 spaces.
    369369                } else {
    370                     $search_url   = add_query_arg( array( 's' => urlencode( $value ) ), bp_get_members_directory_permalink() );
     370                    $query_arg    = bp_core_get_component_search_query_arg( 'members' );
     371                    $search_url   = add_query_arg( array( $query_arg => urlencode( $value ) ), bp_get_members_directory_permalink() );
    371372                    $new_values[] = '<a href="' . esc_url( $search_url ) . '" rel="nofollow">' . $value . '</a>';
    372373                }
Note: See TracChangeset for help on using the changeset viewer.