[buddypress-trac] [BuddyPress Trac] #7513: bp_group_has_members performs unnecessary query
buddypress-trac
noreply at wordpress.org
Wed Jun 21 16:55:45 UTC 2017
#7513: bp_group_has_members performs unnecessary query
------------------------------------------------+----------------------
Reporter: brandonliles | Owner: dcavins
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.9
Component: Groups | Version: 1.0
Severity: normal | Resolution: fixed
Keywords: dev-feedback has-patch 2nd-opinion |
------------------------------------------------+----------------------
Changes (by dcavins):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"11595"]:
{{{
#!CommitTicketReference repository="" revision="11595"
Correct search_term parameter in bp_group_has_members().
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 `search_terms` to be `false` rather than `null`
when a search is not needed.
Props brandonliles.
Fixes #7513.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7513#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list