Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3159 closed defect (bug) (no action required)

bp_has_members search parameter defaults to all members if no match

Reported by: jmckenney's profile jmckenney Owned by:
Milestone: 1.5 Priority: normal
Severity: normal Version:
Component: Members Keywords:
Cc:

Description

I'm trying to search members based upon profile data. bp_has_members has a fantastic search parameter for this ability but when it doesn't match anything, all members are shown. When it does match, it only shows the correct members...

if (bp_has_members(array('search_terms' => $profile_string_var))) {

while ( bp_members() ) {

bp_the_member();

...

Change History (3)

#1 @cnorris23
13 years ago

  • Keywords reporter-feedback added; members removed

This works under normal circumstances. Are there actual search terms in the $profile_string_var when you have this problem, or is that variable empty?

#2 @DJPaul
13 years ago

  • Keywords reporter-feedback removed
  • Resolution set to invalid
  • Status changed from new to closed

Closing due to no response from reporter, and cnorris23 was unable to recreate.

#3 @johnjamesjacoby
13 years ago

  • Component changed from Core to Members
  • Milestone changed from Awaiting Review to 1.5
  • Severity set to normal
  • Version 1.5 deleted

Moving closed ticket out of Awaiting Review.

Note: See TracTickets for help on using tickets.