[buddypress-trac] [BuddyPress Trac] #7419: Use BP_Groups_Group::get() where possible.

buddypress-trac noreply at wordpress.org
Sat Jan 14 01:37:35 UTC 2017


#7419: Use BP_Groups_Group::get() where possible.
-------------------------+------------------------------
 Reporter:  dcavins      |       Owner:  dcavins
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Groups       |     Version:  2.7.2
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |
-------------------------+------------------------------
Changes (by dcavins):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11384"]:
 {{{
 #!CommitTicketReference repository="" revision="11384"
 BP_Groups_Group: Refactor some fetching functions.

 Rewrite `BP_Groups_Group::filter_user_groups`,
 `BP_Groups_Group::search_groups`, `BP_Groups_Group::get_random`, and
 `BP_Groups_Group::get_by_letter` to use `BP_Groups_Group::get()`. Using
 `get()` means that incrementor-based caching will be applied to the
 queries and that `get_group_extras()` can be removed in several places.

 Fixes #7419.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7419#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list