[buddypress-trac] [BuddyPress Trac] #7513: bp_group_has_members performs unnecessary query

buddypress-trac noreply at wordpress.org
Wed Apr 26 14:19:19 UTC 2017


#7513: bp_group_has_members performs unnecessary query
--------------------------+-----------------------------
 Reporter:  brandonliles  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The function bp_group_has_members defaults the query parameter
 'search_terms' to null when there are no search terms, but BP_User_Query
 expects that 'search_terms' is false rather than null. This results in
 BP_User_Query issuing an unnecessary table scan on the users table.

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


More information about the buddypress-trac mailing list