[buddypress-trac] [BuddyPress Trac] #7093: Group Members search broken on non-ajax sites as it's providing 'members_search' on $_REQUEST but system looks for 's'
buddypress-trac
noreply at wordpress.org
Thu May 26 21:40:21 UTC 2016
#7093: Group Members search broken on non-ajax sites as it's providing
'members_search' on $_REQUEST but system looks for 's'
---------------------------------+------------------------------
Reporter: garrett-eclipse | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Component - Members | Version: 2.5.0
Severity: normal | Resolution:
Keywords: |
---------------------------------+------------------------------
Comment (by garrett-eclipse):
'''Temporary Workaround'''
In your members.php template under groups/single/members.php and admin.php
under groups/single/admin.php before the bp_group_has_members loop inject
the following php workaround;
{{{#!php
<?php // Workaround for members_search
if ( array_key_exists( 'members_search', $_REQUEST ) && isset(
$_REQUEST['members_search'] ) && ! empty( $_REQUEST['members_search'] ) )
{
$_REQUEST['s'] = $_REQUEST['members_search'];
}
?>
}}}
This will intercept the $_REQUEST['members_search'] search string and
apply it to $_REQUEST['s'] so that the bp_group_has_members loop function
is provided the search term.
Cheers
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7093#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list