[buddypress-trac] [BuddyPress Trac] #7494: Take advantage of BP_Groups_Group magic methods in groups component setup

buddypress-trac noreply at wordpress.org
Fri Apr 28 14:36:15 UTC 2017


#7494: Take advantage of BP_Groups_Group magic methods in groups component setup
------------------------------------+----------------------
 Reporter:  dcavins                 |       Owner:  dcavins
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  2.9
Component:  Groups                  |     Version:  1.6
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |
------------------------------------+----------------------
Changes (by dcavins):

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


Comment:

 In [changeset:"11544"]:
 {{{
 #!CommitTicketReference repository="" revision="11544"
 Add $is_visible and $is_user_member properties to BP_Groups_Group object.

 During single group setup in the `BP_Groups_Component`, we're doing
 some checks that duplicate logic that is, or should be, handled in
 `BP_Groups_Group`. Then, `BP_Groups_Component` can rely on
 `BP_Groups_Group` to provide the details via recently added magic
 methods.

 Note: $is_user_member is an alias of $is_member for backward
 compatibility.

 Fixes #7494.
 }}}

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


More information about the buddypress-trac mailing list