[buddypress-trac] [BuddyPress Trac] #5659: When querying users with usermeta, if none are found, `bp_core_get_users` returns all users
buddypress-trac
noreply at wordpress.org
Fri May 23 13:43:20 UTC 2014
#5659: When querying users with usermeta, if none are found, `bp_core_get_users`
returns all users
--------------------------------------------+------------------
Reporter: needle | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.1
Component: Members | Version:
Severity: normal | Resolution:
Keywords: needs-refresh needs-unit-tests |
--------------------------------------------+------------------
Changes (by boonebgorges):
* keywords: => needs-refresh needs-unit-tests
* milestone: Awaiting Review => 2.1
Comment:
Thanks for the report. Your solution is pretty close to what is needed (we
generally use the `$no_results['where']` clause instead, which speeds up
the query; see eg the way 'user_id' is parsed in BP_User_Query). If you'd
like to write a BP patch using this technique, please do.
Unit tests are also needed to demonstrate this behavior.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5659#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list