[buddypress-trac] [BuddyPress Trac] #5746: using bp_group_has_members in widgets and conflicts with $_REQUEST['s']

buddypress-trac noreply at wordpress.org
Wed Jul 9 15:25:41 UTC 2014


#5746: using bp_group_has_members in widgets and conflicts with $_REQUEST['s']
--------------------------+-----------------------------
 Reporter:  WCUADD        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Groups        |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Same problem reported in #5318 and fixed with `null` initialization of
 `$default_args['search_terms']` and `is_null()` test before assigning
 `$_REQUEST['s']`.

 This permits to run a secondary members loop in a page (for instance in a
 widget) while primary loop is whatever loop (buddypress ou wordpress loop)
 using the search `s` argument.

 While the problem has been solved for the `bp_has_members()` loop, it has
 not been solved for `bp_group_has_members()` loop causing false results
 (even with fixing `search_terms` to `false` in the args array given to the
 loop).

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5746>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list