[buddypress-trac] [BuddyPress Trac] #7382: groups_promote_member() shouldn't attempt to fetch `BP_Core_User` object

buddypress-trac noreply at wordpress.org
Fri Jan 6 03:56:10 UTC 2017


#7382: groups_promote_member() shouldn't attempt to fetch `BP_Core_User` object
----------------------------------------+---------------------------
 Reporter:  r-a-y                       |       Owner:  boonebgorges
     Type:  enhancement                 |      Status:  closed
 Priority:  normal                      |   Milestone:  2.8
Component:  Groups                      |     Version:  1.0
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+---------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"11378"]:
 {{{
 #!CommitTicketReference repository="" revision="11378"
 Lazy-load `user` property in `BP_Groups_Member`.

 The `user` property is a `BP_Core_User` object, but is rarely
 used by BP core. Only loading it when needed can save database
 queries in certain cases, such as when a user is being promoted
 or demoted within a group.

 Props r-a-y.
 Fixes #7382.
 }}}

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


More information about the buddypress-trac mailing list