Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/25/2015 09:12:19 PM (9 years ago)
Author:
r-a-y
Message:

Make sure search terms are passed when rendering pagination.

r10110 altered the search query parameter for each BuddyPress component
(see #5087). However, we also need to change the search query parameter in
our template loops so pagination will work when a search is in effect.

This commit alters the Members and Groups component template loops to use
the new search query parameter and alters the JS to find the correct search
term value.

See #6745 (trunk).

File:
1 edited

Legend:

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

    r10322 r10378  
    359359
    360360            if ( ! empty( $search_terms ) ) {
    361                 $add_args['s'] = urlencode( $search_terms );
     361                $query_arg = bp_core_get_component_search_query_arg( 'members' );
     362                $add_args[ $query_arg ] = urlencode( $search_terms );
    362363            }
    363364
Note: See TracChangeset for help on using the changeset viewer.